]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: don't return TXQ when exceeding max non-AQL packets
authorDavid Bauer <mail@david-bauer.net>
Thu, 29 Jan 2026 23:23:20 +0000 (00:23 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:30 +0000 (15:49 +0000)
commit964f870e090e9c88a41e2890333421204cc0bdf4
treeed0ac042855b882ebcd838dccdea155576b4b4b0
parent1f9017d19db38ad2cb9bedb5b078f6f4f60afa94
wifi: mt76: don't return TXQ when exceeding max non-AQL packets

mt76_txq_send_burst does check if the number of non-AQL frames exceeds
the maximum. In this case the queue is returned to ieee80211_return_txq
when iterating over the scheduled TXQs in mt76_txq_schedule_list.

This has the effect of inserting said TXQ at the head of the list. This
means the loop will get the same TXQ again, which will terminate the
scheduling round. TXQs following in the list thus never get scheduled
for transmission.

This can manifest in high latency low throughput or broken connections
for said STAs.

Check if the non-AQL packet count exceeds the limit and not return the
TXQ in this case.
Schedule all TXQs for the STA in case the non-AQL limit can be satisfied
again.

Signed-off-by: David Bauer <mail@david-bauer.net>
Link: https://patch.msgid.link/20260129232321.276575-1-mail@david-bauer.net
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/tx.c