aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_main.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 15:36:42 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-22 01:55:34 -0400
commit4cfa8e45f4bb26ff38155f94a810a876b739958d (patch)
treec34fff3c9ada21c12787e684ec22cc14f2722001 /drivers/net/wireless/hostap/hostap_main.c
parent44e9ad0b5a9bd4de7ff3ac28b27d6577eb58fd91 (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.c10
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
610struct 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
618static int prism2_close(struct net_device *dev) 610static 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);
1112EXPORT_SYMBOL(hostap_dump_rx_header); 1103EXPORT_SYMBOL(hostap_dump_rx_header);
1113EXPORT_SYMBOL(hostap_dump_tx_header); 1104EXPORT_SYMBOL(hostap_dump_tx_header);
1114EXPORT_SYMBOL(hostap_80211_get_hdrlen); 1105EXPORT_SYMBOL(hostap_80211_get_hdrlen);
1115EXPORT_SYMBOL(hostap_get_stats);
1116EXPORT_SYMBOL(hostap_setup_dev); 1106EXPORT_SYMBOL(hostap_setup_dev);
1117EXPORT_SYMBOL(hostap_set_multicast_list_queue); 1107EXPORT_SYMBOL(hostap_set_multicast_list_queue);
1118EXPORT_SYMBOL(hostap_set_hostapd); 1108EXPORT_SYMBOL(hostap_set_hostapd);