diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-11 15:09:15 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-08-02 09:50:26 +0200 |
commit | 4e3f21bc7bfbdc4a348852e4da1540227e1b0171 (patch) | |
tree | b93640102f469dd27355f1fa40e773a1ab0fb859 /net/mac80211 | |
parent | 680682d4d537565e2c358483e1feeca30a8cf3d4 (diff) |
mac80211: fix check for buffered powersave frames with txq
The logic was inverted here, set the bit if frames are pending.
Fixes: ba8c3d6f16a1 ("mac80211: add an intermediate software queue implementation")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 2e8a9024625a..9dce3b157908 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1268,7 +1268,7 @@ static void sta_ps_start(struct sta_info *sta) for (tid = 0; tid < ARRAY_SIZE(sta->sta.txq); tid++) { struct txq_info *txqi = to_txq_info(sta->sta.txq[tid]); - if (!txqi->tin.backlog_packets) + if (txqi->tin.backlog_packets) set_bit(tid, &sta->txq_buffered_tids); else clear_bit(tid, &sta->txq_buffered_tids); |