diff options
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 82af21eeb592..db91db776508 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -2524,6 +2524,17 @@ static int bcm4320_early_init(struct usbnet *usbdev) | |||
2524 | return 0; | 2524 | return 0; |
2525 | } | 2525 | } |
2526 | 2526 | ||
2527 | /* same as rndis_netdev_ops but with local multicast handler */ | ||
2528 | static const struct net_device_ops rndis_wext_netdev_ops = { | ||
2529 | .ndo_open = usbnet_open, | ||
2530 | .ndo_stop = usbnet_stop, | ||
2531 | .ndo_start_xmit = usbnet_start_xmit, | ||
2532 | .ndo_tx_timeout = usbnet_tx_timeout, | ||
2533 | .ndo_set_mac_address = eth_mac_addr, | ||
2534 | .ndo_validate_addr = eth_validate_addr, | ||
2535 | .ndo_set_multicast_list = rndis_wext_set_multicast_list, | ||
2536 | }; | ||
2537 | |||
2527 | 2538 | ||
2528 | static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf) | 2539 | static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf) |
2529 | { | 2540 | { |
@@ -2559,7 +2570,8 @@ static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf) | |||
2559 | * rndis_host wants to avoid all OID as much as possible | 2570 | * rndis_host wants to avoid all OID as much as possible |
2560 | * so do promisc/multicast handling in rndis_wext. | 2571 | * so do promisc/multicast handling in rndis_wext. |
2561 | */ | 2572 | */ |
2562 | usbdev->net->set_multicast_list = rndis_wext_set_multicast_list; | 2573 | usbdev->net->netdev_ops = &rndis_wext_netdev_ops; |
2574 | |||
2563 | tmp = RNDIS_PACKET_TYPE_DIRECTED | RNDIS_PACKET_TYPE_BROADCAST; | 2575 | tmp = RNDIS_PACKET_TYPE_DIRECTED | RNDIS_PACKET_TYPE_BROADCAST; |
2564 | retval = rndis_set_oid(usbdev, OID_GEN_CURRENT_PACKET_FILTER, &tmp, | 2576 | retval = rndis_set_oid(usbdev, OID_GEN_CURRENT_PACKET_FILTER, &tmp, |
2565 | sizeof(tmp)); | 2577 | sizeof(tmp)); |