mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
rndis_wlan: Fix build with netdev_ops compat disabled.
Instead of storing a private ->set_multicast_list, just have a private netdev ops. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
67fca028f1
commit
23d12e2bdd
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue