aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-22 19:17:56 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 10:36:01 -0500
commit1861b8455351cd426fb7dec8743ac312aafbe93d (patch)
tree438ed1134efa96732c3f3a4a938aa74f08c011b2 /net/mac80211/iface.c
parent7b4396bd6868f3d665c5f4cb53a9bdde5a2f4bf2 (diff)
mac80211: simplify AP interface stop
For AP interfaces, there's no need to flush stations or keys again when the interface is stopped as already happened when the BSS was stopped on the interface. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 290de4d99697..d85282f64405 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -836,14 +836,16 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
836 rcu_barrier(); 836 rcu_barrier();
837 sta_info_flush_cleanup(sdata); 837 sta_info_flush_cleanup(sdata);
838 838
839 skb_queue_purge(&sdata->skb_queue);
840
841 /* 839 /*
842 * Free all remaining keys, there shouldn't be any, 840 * Free all remaining keys, there shouldn't be any,
843 * except maybe in WDS mode? 841 * except maybe in WDS mode?
844 */ 842 */
845 ieee80211_free_keys(sdata); 843 ieee80211_free_keys(sdata);
846 844
845 /* fall through */
846 case NL80211_IFTYPE_AP:
847 skb_queue_purge(&sdata->skb_queue);
848
847 drv_remove_interface_debugfs(local, sdata); 849 drv_remove_interface_debugfs(local, sdata);
848 850
849 if (going_down) 851 if (going_down)