aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 954edfbb6b6f..b4973a1b6595 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -734,6 +734,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
734 734
735 wiphy->privid = mac80211_wiphy_privid; 735 wiphy->privid = mac80211_wiphy_privid;
736 wiphy->max_scan_ssids = 4; 736 wiphy->max_scan_ssids = 4;
737 /* Yes, putting cfg80211_bss into ieee80211_bss is a hack */
738 wiphy->bss_priv_size = sizeof(struct ieee80211_bss) -
739 sizeof(struct cfg80211_bss);
737 740
738 local = wiphy_priv(wiphy); 741 local = wiphy_priv(wiphy);
739 local->hw.wiphy = wiphy; 742 local->hw.wiphy = wiphy;
@@ -877,8 +880,6 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
877 mpriv->local = local; 880 mpriv->local = local;
878 local->mdev = mdev; 881 local->mdev = mdev;
879 882
880 ieee80211_rx_bss_list_init(local);
881
882 local->hw.workqueue = 883 local->hw.workqueue =
883 create_singlethread_workqueue(wiphy_name(local->hw.wiphy)); 884 create_singlethread_workqueue(wiphy_name(local->hw.wiphy));
884 if (!local->hw.workqueue) { 885 if (!local->hw.workqueue) {
@@ -1018,7 +1019,6 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
1018 1019
1019 rtnl_unlock(); 1020 rtnl_unlock();
1020 1021
1021 ieee80211_rx_bss_list_deinit(local);
1022 ieee80211_clear_tx_pending(local); 1022 ieee80211_clear_tx_pending(local);
1023 sta_info_stop(local); 1023 sta_info_stop(local);
1024 rate_control_deinitialize(local); 1024 rate_control_deinitialize(local);