diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:36:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-22 01:51:21 -0400 |
commit | 98d2faaeb72a2db4ea232263ca4ce9dbfe8e1f5a (patch) | |
tree | 898c0d069cdcb235f6afb007d8b5185979d2b30b /drivers/net/wireless/mac80211_hwsim.c | |
parent | 2bd9f54d46e28fdaa15240af6a97c953720ea5c1 (diff) |
mac80211_hwsim: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index a15078bcad73..2368b7f825a2 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -739,10 +739,16 @@ static struct device_driver mac80211_hwsim_driver = { | |||
739 | .name = "mac80211_hwsim" | 739 | .name = "mac80211_hwsim" |
740 | }; | 740 | }; |
741 | 741 | ||
742 | static const struct net_device_ops hwsim_netdev_ops = { | ||
743 | .ndo_start_xmit = hwsim_mon_xmit, | ||
744 | .ndo_change_mtu = eth_change_mtu, | ||
745 | .ndo_set_mac_address = eth_mac_addr, | ||
746 | .ndo_validate_addr = eth_validate_addr, | ||
747 | }; | ||
742 | 748 | ||
743 | static void hwsim_mon_setup(struct net_device *dev) | 749 | static void hwsim_mon_setup(struct net_device *dev) |
744 | { | 750 | { |
745 | dev->hard_start_xmit = hwsim_mon_xmit; | 751 | dev->netdev_ops = &hwsim_netdev_ops; |
746 | dev->destructor = free_netdev; | 752 | dev->destructor = free_netdev; |
747 | ether_setup(dev); | 753 | ether_setup(dev); |
748 | dev->tx_queue_len = 0; | 754 | dev->tx_queue_len = 0; |