aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-05-29 05:00:22 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-09 11:32:59 -0400
commit6ec1d66c8d22bc76ebf37860a87ca399790beb5d (patch)
tree4e0cdf414e2ff2d559b3c7e8b1308e3c9f1dfbda /net
parent65ec0e1ca3d1ff89f36db4cd19441bf001fb7d8a (diff)
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 <eyal@wizery.com> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 2124db8e72b..11d9d49f22d 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1254,6 +1254,12 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1254 } 1254 }
1255 } 1255 }
1256 1256
1257 /* add back keys */
1258 list_for_each_entry(sdata, &local->interfaces, list)
1259 if (ieee80211_sdata_running(sdata))
1260 ieee80211_enable_keys(sdata);
1261
1262 wake_up:
1257 /* 1263 /*
1258 * Clear the WLAN_STA_BLOCK_BA flag so new aggregation 1264 * Clear the WLAN_STA_BLOCK_BA flag so new aggregation
1259 * sessions can be established after a resume. 1265 * sessions can be established after a resume.
@@ -1275,12 +1281,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1275 mutex_unlock(&local->sta_mtx); 1281 mutex_unlock(&local->sta_mtx);
1276 } 1282 }
1277 1283
1278 /* add back keys */
1279 list_for_each_entry(sdata, &local->interfaces, list)
1280 if (ieee80211_sdata_running(sdata))
1281 ieee80211_enable_keys(sdata);
1282
1283 wake_up:
1284 ieee80211_wake_queues_by_reason(hw, 1284 ieee80211_wake_queues_by_reason(hw,
1285 IEEE80211_QUEUE_STOP_REASON_SUSPEND); 1285 IEEE80211_QUEUE_STOP_REASON_SUSPEND);
1286 1286