Skip to contentSkip to conversation

mac80211: fix check for buffered powersave frames with txq

PATCH Applied Felix Fietkau 2 participants 2 messages Jul 11, 2016 – Aug 2, 2016 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/mac80211/rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/rx.c +1 -1
index 9a1eb70..aaa9373 100644
@@ -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);
Signature · 1 line
2.8.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Felix Fietkau

The logic was inverted here, set the bit if frames are pending.

Applied, thanks.

johannes