diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:36:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-22 01:55:34 -0400 |
commit | 4cfa8e45f4bb26ff38155f94a810a876b739958d (patch) | |
tree | c34fff3c9ada21c12787e684ec22cc14f2722001 /drivers/net/wireless/hostap/hostap_main.c | |
parent | 44e9ad0b5a9bd4de7ff3ac28b27d6577eb58fd91 (diff) |
hostap: convert to internal net_device_stats
Use pre-existing net_device_stats in network_device struct.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 5d55f92f654b..792dd14c894e 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -607,14 +607,6 @@ int hostap_80211_get_hdrlen(__le16 fc) | |||
607 | } | 607 | } |
608 | 608 | ||
609 | 609 | ||
610 | struct net_device_stats *hostap_get_stats(struct net_device *dev) | ||
611 | { | ||
612 | struct hostap_interface *iface; | ||
613 | iface = netdev_priv(dev); | ||
614 | return &iface->stats; | ||
615 | } | ||
616 | |||
617 | |||
618 | static int prism2_close(struct net_device *dev) | 610 | static int prism2_close(struct net_device *dev) |
619 | { | 611 | { |
620 | struct hostap_interface *iface; | 612 | struct hostap_interface *iface; |
@@ -832,7 +824,6 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local, | |||
832 | ether_setup(dev); | 824 | ether_setup(dev); |
833 | 825 | ||
834 | /* kernel callbacks */ | 826 | /* kernel callbacks */ |
835 | dev->get_stats = hostap_get_stats; | ||
836 | if (iface) { | 827 | if (iface) { |
837 | /* Currently, we point to the proper spy_data only on | 828 | /* Currently, we point to the proper spy_data only on |
838 | * the main_dev. This could be fixed. Jean II */ | 829 | * the main_dev. This could be fixed. Jean II */ |
@@ -1112,7 +1103,6 @@ EXPORT_SYMBOL(hostap_set_auth_algs); | |||
1112 | EXPORT_SYMBOL(hostap_dump_rx_header); | 1103 | EXPORT_SYMBOL(hostap_dump_rx_header); |
1113 | EXPORT_SYMBOL(hostap_dump_tx_header); | 1104 | EXPORT_SYMBOL(hostap_dump_tx_header); |
1114 | EXPORT_SYMBOL(hostap_80211_get_hdrlen); | 1105 | EXPORT_SYMBOL(hostap_80211_get_hdrlen); |
1115 | EXPORT_SYMBOL(hostap_get_stats); | ||
1116 | EXPORT_SYMBOL(hostap_setup_dev); | 1106 | EXPORT_SYMBOL(hostap_setup_dev); |
1117 | EXPORT_SYMBOL(hostap_set_multicast_list_queue); | 1107 | EXPORT_SYMBOL(hostap_set_multicast_list_queue); |
1118 | EXPORT_SYMBOL(hostap_set_hostapd); | 1108 | EXPORT_SYMBOL(hostap_set_hostapd); |