aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-10-02 01:15:25 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-05 03:43:33 -0400
commite1e499eef2200c2a7120c9ebf297d48b195cf887 (patch)
treee05c21cbd039f5f922087074b68a7d2cd8d75bb6 /drivers/net/usb/usbnet.c
parent0bfbedb14a8a96c529341bec88991a92b41fac72 (diff)
usbnet: Use wwan%d interface name for mobile broadband devices
Add support for usbnet based devices like CDC-Ether to indicate that they are actually mobile broadband devices. In that case use wwan%d as default interface name. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r--drivers/net/usb/usbnet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index ca5ca5ae061d..8124cf16259f 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1295,6 +1295,9 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1295 /* WLAN devices should always be named "wlan%d" */ 1295 /* WLAN devices should always be named "wlan%d" */
1296 if ((dev->driver_info->flags & FLAG_WLAN) != 0) 1296 if ((dev->driver_info->flags & FLAG_WLAN) != 0)
1297 strcpy(net->name, "wlan%d"); 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 1301
1299 /* maybe the remote can't receive an Ethernet MTU */ 1302 /* maybe the remote can't receive an Ethernet MTU */
1300 if (net->mtu > (dev->hard_mtu - net->hard_header_len)) 1303 if (net->mtu > (dev->hard_mtu - net->hard_header_len))