usbnet.c (0aa73ba1c4e1ad1d51a29e0df95ccd9f746918b6) usbnet.c (e1e499eef2200c2a7120c9ebf297d48b195cf887)
1/*
2 * USB Network driver infrastructure
3 * Copyright (C) 2000-2005 by David Brownell
4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1281 unchanged lines hidden (view full) ---

1290 // else "eth%d" when there's reasonable doubt. userspace
1291 // can rename the link if it knows better.
1292 if ((dev->driver_info->flags & FLAG_ETHER) != 0
1293 && (net->dev_addr [0] & 0x02) == 0)
1294 strcpy (net->name, "eth%d");
1295 /* WLAN devices should always be named "wlan%d" */
1296 if ((dev->driver_info->flags & FLAG_WLAN) != 0)
1297 strcpy(net->name, "wlan%d");
1/*
2 * USB Network driver infrastructure
3 * Copyright (C) 2000-2005 by David Brownell
4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1281 unchanged lines hidden (view full) ---

1290 // else "eth%d" when there's reasonable doubt. userspace
1291 // can rename the link if it knows better.
1292 if ((dev->driver_info->flags & FLAG_ETHER) != 0
1293 && (net->dev_addr [0] & 0x02) == 0)
1294 strcpy (net->name, "eth%d");
1295 /* WLAN devices should always be named "wlan%d" */
1296 if ((dev->driver_info->flags & FLAG_WLAN) != 0)
1297 strcpy(net->name, "wlan%d");
1298 /* WWAN devices should always be named "wwan%d" */
1299 if ((dev->driver_info->flags & FLAG_WWAN) != 0)
1300 strcpy(net->name, "wwan%d");
1298
1299 /* maybe the remote can't receive an Ethernet MTU */
1300 if (net->mtu > (dev->hard_mtu - net->hard_header_len))
1301 net->mtu = dev->hard_mtu - net->hard_header_len;
1302 } else if (!info->in || !info->out)
1303 status = usbnet_get_endpoints (dev, udev);
1304 else {
1305 dev->in = usb_rcvbulkpipe (xdev, info->in);

--- 110 unchanged lines hidden ---
1301
1302 /* maybe the remote can't receive an Ethernet MTU */
1303 if (net->mtu > (dev->hard_mtu - net->hard_header_len))
1304 net->mtu = dev->hard_mtu - net->hard_header_len;
1305 } else if (!info->in || !info->out)
1306 status = usbnet_get_endpoints (dev, udev);
1307 else {
1308 dev->in = usb_rcvbulkpipe (xdev, info->in);

--- 110 unchanged lines hidden ---