From: Jason Self <j@jxself.org>
To: johannes@sipsolutions.net
Cc: Jason Self <j@jxself.org>, linux-wireless@vger.kernel.org
Subject: [PATCH wireless] wifi: mac80211: wake TXQs of all ACs with fewer HW queues than ACs
Date: Tue, 24 Nov 2026 18:32:55 -0800 [thread overview]
Message-ID: <20261125023259.820308-1-j@jxself.org> (raw)
_ieee80211_wake_txqs() walks only one AC when the hardware has fewer
queues than ACs, but __ieee80211_wake_txqs() selects TXQs by AC, so only
AC_VO TXQs are woken. A dirty AC_BE TXQ then waits for a later frame.
With vt6656 and dynamic power save, this delayed pings by up to a minute.
Walk all ACs; with fewer queues than ACs they all map to queue 0.
Found and written with Claude Code, an AI coding assistant; tested on
hardware by the submitter.
Fixes: 21a5d4c3a45c ("mac80211: add stop/start logic for software TXQs")
Signed-off-by: Jason Self <j@jxself.org>
---
net/mac80211/util.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 44feb80274..442606a4ae 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -403,14 +403,10 @@ __acquires(&local->queue_stop_reason_lock)
_ieee80211_wake_txqs(struct ieee80211_local *local, unsigned long *flags)
{
struct ieee80211_sub_if_data *sdata;
- int n_acs = IEEE80211_NUM_ACS;
int i;
rcu_read_lock();
- if (local->hw.queues < IEEE80211_NUM_ACS)
- n_acs = 1;
-
for (i = 0; i < local->hw.queues; i++) {
if (local->queue_stop_reasons[i])
continue;
@@ -419,7 +415,12 @@ _ieee80211_wake_txqs(struct ieee80211_local *local, unsigned long *flags)
list_for_each_entry_rcu(sdata, &local->interfaces, list) {
int ac;
- for (ac = 0; ac < n_acs; ac++) {
+ /*
+ * Walk all ACs even with fewer hardware queues than
+ * ACs: they then all map to queue 0, and
+ * __ieee80211_wake_txqs() selects TXQs by AC.
+ */
+ for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
int ac_queue = sdata->vif.hw_queue[ac];
if (ac_queue == i ||
--
2.43.0
reply other threads:[~2026-11-25 2:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261125023259.820308-1-j@jxself.org \
--to=j@jxself.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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