diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-02-27 15:05:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-27 15:05:51 -0500 |
commit | 8e2a89c5151d4645b9649ab9a9498f3445d48868 (patch) | |
tree | cc532feafb67c7a608f5c2b718c548b2c898e1b0 /net/mac80211/rx.c | |
parent | 724b9e1d75ab3401aaa081bd4efb440c1b3509db (diff) | |
parent | b7b146c9c9a0248cc57da71244f672ebc54bbef1 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index c24ca0d0f469..3e57f96c9666 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1128,6 +1128,13 @@ static void sta_ps_end(struct sta_info *sta) sta->sta.addr, sta->sta.aid); if (test_sta_flag(sta, WLAN_STA_PS_DRIVER)) { + /* + * Clear the flag only if the other one is still set + * so that the TX path won't start TX'ing new frames + * directly ... In the case that the driver flag isn't + * set ieee80211_sta_ps_deliver_wakeup() will clear it. + */ + clear_sta_flag(sta, WLAN_STA_PS_STA); ps_dbg(sta->sdata, "STA %pM aid %d driver-ps-blocked\n", sta->sta.addr, sta->sta.aid); return; |