diff mbox

[ath9k-txq-work,2/2] ath9k: call ieee80211_sta_set_buffered if frames are pending

Message ID 20160711130405.77451-2-nbd@nbd.name (mailing list archive)
State Not Applicable
Delegated to: Kalle Valo
Headers show

Commit Message

Felix Fietkau July 11, 2016, 1:04 p.m. UTC
mac80211 needs to know about driver queued frames

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/ath/ath9k/xmit.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index b3521c3..18c7443 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1561,6 +1561,9 @@  void ath_tx_aggr_sleep(struct ieee80211_sta *sta, struct ath_softc *sc,
 			continue;
 		}
 
+		if (!skb_queue_empty(&tid->retry_q))
+			ieee80211_sta_set_buffered(sta, tid->tidno, true);
+
 		list_del_init(&tid->list);
 
 		ath_txq_unlock(sc, txq);