Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135532
b: refs/heads/master
c: 23d12e2
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 25, 2009
1 parent be0ca0b commit 037fd9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67fca028f1535e510689d2e444b0289e264e05c1
refs/heads/master: 23d12e2bdd4f73d90c8c29674c531aa45eecf27f
14 changes: 13 additions & 1 deletion trunk/drivers/net/wireless/rndis_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2524,6 +2524,17 @@ static int bcm4320_early_init(struct usbnet *usbdev)
return 0;
}

/* same as rndis_netdev_ops but with local multicast handler */
static const struct net_device_ops rndis_wext_netdev_ops = {
.ndo_open = usbnet_open,
.ndo_stop = usbnet_stop,
.ndo_start_xmit = usbnet_start_xmit,
.ndo_tx_timeout = usbnet_tx_timeout,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_multicast_list = rndis_wext_set_multicast_list,
};


static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf)
{
Expand Down Expand Up @@ -2559,7 +2570,8 @@ static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf)
* rndis_host wants to avoid all OID as much as possible
* so do promisc/multicast handling in rndis_wext.
*/
usbdev->net->set_multicast_list = rndis_wext_set_multicast_list;
usbdev->net->netdev_ops = &rndis_wext_netdev_ops;

tmp = RNDIS_PACKET_TYPE_DIRECTED | RNDIS_PACKET_TYPE_BROADCAST;
retval = rndis_set_oid(usbdev, OID_GEN_CURRENT_PACKET_FILTER, &tmp,
sizeof(tmp));
Expand Down

0 comments on commit 037fd9c

Please sign in to comment.