]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/net/usb/usbnet.c
usbnet: Use wwan%d interface name for mobile broadband devices
[linux-2.6.git] / drivers / net / usb / usbnet.c
index ca5ca5ae061d755ba2ec97f4d8285d7c079680ee..8124cf16259f2d721699de90e85c6c94399fdb24 100644 (file)
@@ -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))