Linux wireless drivers development
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@nbd.name>
To: toke@toke.dk
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH ath9k-txq-work 1/2] ath9k: fix powersave wakeup
Date: Mon, 11 Jul 2016 15:04:04 +0200	[thread overview]
Message-ID: <20160711130405.77451-1-nbd@nbd.name> (raw)

drv_wake_tx_queue will only call into the driver if there are frames
pending in the mac80211 queue. the driver needs to take care of its own
queued frames

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

diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index b0a6fd2..b3521c3 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1582,6 +1582,10 @@ void ath_tx_aggr_wakeup(struct ath_softc *sc, struct ath_node *an)
 
 		ath_txq_lock(sc, txq);
 		tid->clear_ps_filter = true;
+		if (ath_tid_has_buffered(tid)) {
+			ath_tx_queue_tid(sc, txq, tid);
+			ath_txq_schedule(sc, txq);
+		}
 		ath_txq_unlock_complete(sc, txq);
 	}
 }
-- 
2.8.4


             reply	other threads:[~2016-07-11 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 13:04 Felix Fietkau [this message]
2016-07-11 13:04 ` [PATCH ath9k-txq-work 2/2] ath9k: call ieee80211_sta_set_buffered if frames are pending Felix Fietkau
2016-07-11 13:52 ` [PATCH ath9k-txq-work 1/2] ath9k: fix powersave wakeup Toke Høiland-Jørgensen
2016-07-11 13:55   ` Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160711130405.77451-1-nbd@nbd.name \
    --to=nbd@nbd.name \
    --cc=linux-wireless@vger.kernel.org \
    --cc=toke@toke.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox