Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: allow Rx in reconfig only after removing BA sessions
@ 2012-06-27 18:25 Arik Nemtsov
  2012-06-28  8:17 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Arik Nemtsov @ 2012-06-27 18:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg, Arik Nemtsov

Previously, a connected STA/AP could send us some AMPDUs right after
recovery, without the driver knowing anything about it.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
---
 net/mac80211/util.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 242ecde..a041f20 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1411,9 +1411,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 		if (ieee80211_sdata_running(sdata))
 			ieee80211_enable_keys(sdata);
 
-	local->in_reconfig = false;
-	barrier();
-
  wake_up:
 	/*
 	 * Clear the WLAN_STA_BLOCK_BA flag so new aggregation
@@ -1436,6 +1433,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 		mutex_unlock(&local->sta_mtx);
 	}
 
+	local->in_reconfig = false;
+
 	ieee80211_wake_queues_by_reason(hw,
 			IEEE80211_QUEUE_STOP_REASON_SUSPEND);
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-28 14:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27 18:25 [PATCH] mac80211: allow Rx in reconfig only after removing BA sessions Arik Nemtsov
2012-06-28  8:17 ` Johannes Berg
2012-06-28  8:37   ` Arik Nemtsov
2012-06-28  9:30     ` Johannes Berg
2012-06-28  9:38       ` Arik Nemtsov
2012-06-28  9:42         ` Johannes Berg
2012-06-28 14:18           ` Arik Nemtsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox