diff options
author | Eliad Peller <eliad@wizery.com> | 2012-01-26 06:36:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-27 14:57:05 -0500 |
commit | 6e1b1b246096fe04467f928973487fa47afaf2cc (patch) | |
tree | a46e853d2d60d1e7238c2991474d1a3a8dcf8ffe /net/mac80211/util.c | |
parent | 6269cc83e7c444f3050e0d7e640d079bae17aa68 (diff) |
mac80211: send null packet on active (psm) reconfiguration
The sta might be in psm against the ap (e.g. because
this was the before a hw restart), so we explicitly
send a null packet in order to make sure it'll
sync against the ap (and get out of psm).
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 30d72e2af7ce..d82d886d0867 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1272,6 +1272,21 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
1272 | ieee80211_recalc_ps(local, -1); | 1272 | ieee80211_recalc_ps(local, -1); |
1273 | 1273 | ||
1274 | /* | 1274 | /* |
1275 | * The sta might be in psm against the ap (e.g. because | ||
1276 | * this was the state before a hw restart), so we | ||
1277 | * explicitly send a null packet in order to make sure | ||
1278 | * it'll sync against the ap (and get out of psm). | ||
1279 | */ | ||
1280 | if (!(local->hw.conf.flags & IEEE80211_CONF_PS)) { | ||
1281 | list_for_each_entry(sdata, &local->interfaces, list) { | ||
1282 | if (sdata->vif.type != NL80211_IFTYPE_STATION) | ||
1283 | continue; | ||
1284 | |||
1285 | ieee80211_send_nullfunc(local, sdata, 0); | ||
1286 | } | ||
1287 | } | ||
1288 | |||
1289 | /* | ||
1275 | * Clear the WLAN_STA_BLOCK_BA flag so new aggregation | 1290 | * Clear the WLAN_STA_BLOCK_BA flag so new aggregation |
1276 | * sessions can be established after a resume. | 1291 | * sessions can be established after a resume. |
1277 | * | 1292 | * |