Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170424
b: refs/heads/master
c: 225794f
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Oct 5, 2009
1 parent cbd53da commit 74ffc7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1e499eef2200c2a7120c9ebf297d48b195cf887
refs/heads/master: 225794f8c33fd32721ae1cd3576db99810351d7b
14 changes: 14 additions & 0 deletions trunk/drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,14 @@ static const struct net_device_ops usbnet_netdev_ops = {

// precondition: never called in_interrupt

static struct device_type wlan_type = {
.name = "wlan",
};

static struct device_type wwan_type = {
.name = "wwan",
};

int
usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
{
Expand Down Expand Up @@ -1325,6 +1333,12 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
dev->maxpacket = usb_maxpacket (dev->udev, dev->out, 1);

SET_NETDEV_DEV(net, &udev->dev);

if ((dev->driver_info->flags & FLAG_WLAN) != 0)
SET_NETDEV_DEVTYPE(net, &wlan_type);
if ((dev->driver_info->flags & FLAG_WWAN) != 0)
SET_NETDEV_DEVTYPE(net, &wwan_type);

status = register_netdev (net);
if (status)
goto out3;
Expand Down

0 comments on commit 74ffc7b

Please sign in to comment.