diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-10-02 09:15:25 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-05 11:43:33 +0400 |
commit | e1e499eef2200c2a7120c9ebf297d48b195cf887 (patch) | |
tree | e05c21cbd039f5f922087074b68a7d2cd8d75bb6 /drivers/net/usb/usbnet.c | |
parent | 0bfbedb14a8a96c529341bec88991a92b41fac72 (diff) | |
download | linux-e1e499eef2200c2a7120c9ebf297d48b195cf887.tar.xz |
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.c | 3 |
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) /* WLAN devices should always be named "wlan%d" */ if ((dev->driver_info->flags & FLAG_WLAN) != 0) strcpy(net->name, "wlan%d"); + /* WWAN devices should always be named "wwan%d" */ + if ((dev->driver_info->flags & FLAG_WWAN) != 0) + strcpy(net->name, "wwan%d"); /* maybe the remote can't receive an Ethernet MTU */ if (net->mtu > (dev->hard_mtu - net->hard_header_len)) |