On Tue, 2009-01-27 at 05:29 +1100, Stephen Hemminger wrote: > Convert to new net_device_ops in 2.6.28 and later. > > Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx> Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > > --- a/net/mac80211/iface.c 2009-01-17 12:27:00.000000000 +1100 > +++ b/net/mac80211/iface.c 2009-01-25 21:03:03.737986092 +1100 > @@ -569,18 +569,21 @@ static void ieee80211_set_multicast_list > dev_mc_sync(local->mdev, dev); > } > > +static const struct net_device_ops ieee80211_netdev_ops = { > + .ndo_open = ieee80211_open, > + .ndo_stop = ieee80211_stop, > + .ndo_start_xmit = ieee80211_subif_start_xmit, > + .ndo_set_multicast_list = ieee80211_set_multicast_list, > + .ndo_change_mtu = ieee80211_change_mtu, > + .ndo_set_mac_address = eth_mac_addr, > +}; > + > static void ieee80211_if_setup(struct net_device *dev) > { > ether_setup(dev); > - dev->hard_start_xmit = ieee80211_subif_start_xmit; > + dev->netdev_ops = &ieee80211_netdev_ops; > dev->wireless_handlers = &ieee80211_iw_handler_def; > - dev->set_multicast_list = ieee80211_set_multicast_list; > - dev->change_mtu = ieee80211_change_mtu; > - dev->open = ieee80211_open; > - dev->stop = ieee80211_stop; > dev->destructor = free_netdev; > - /* we will validate the address ourselves in ->open */ > - dev->validate_addr = NULL; > } > /* > * Called when the netdev is removed or, by the code below, before >
Attachment:
signature.asc
Description: This is a digitally signed message part