From: Eyal Shapira Date: Tue, 29 May 2012 09:00:22 +0000 (-0700) Subject: mac80211: fix ADDBA declined after suspend with wowlan X-Git-Tag: v3.4.2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=74b31d2a64a49ce8dbf8620eba0a116a892d4d0b;p=karo-tx-linux.git mac80211: fix ADDBA declined after suspend with wowlan commit 7b21aea04d084916ac4e0e8852dcc9cd60ec0d1d upstream. WLAN_STA_BLOCK_BA is set while suspending but doesn't get cleared when resuming in case of wowlan. This causes further ADDBA requests received to be rejected. Fix it by clearing it in the wowlan path as well. Signed-off-by: Eyal Shapira Reviewed-by: Johannes Berg Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 32f7a3b3d43c..3862c966decf 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1321,6 +1321,12 @@ int ieee80211_reconfig(struct ieee80211_local *local) } } + /* add back keys */ + list_for_each_entry(sdata, &local->interfaces, list) + if (ieee80211_sdata_running(sdata)) + ieee80211_enable_keys(sdata); + + wake_up: /* * Clear the WLAN_STA_BLOCK_BA flag so new aggregation * sessions can be established after a resume. @@ -1342,12 +1348,6 @@ int ieee80211_reconfig(struct ieee80211_local *local) mutex_unlock(&local->sta_mtx); } - /* add back keys */ - list_for_each_entry(sdata, &local->interfaces, list) - if (ieee80211_sdata_running(sdata)) - ieee80211_enable_keys(sdata); - - wake_up: ieee80211_wake_queues_by_reason(hw, IEEE80211_QUEUE_STOP_REASON_SUSPEND);