[PATCH ath-next 0/3] wifi: mac80211/ath11k: AQL limits per station from its PPDUs

From: Julius Bairaktaris

Date: Sun Nov 29 2026 - 09:42:35 EST


mac80211 gives every station the same AQL limits, 5 ms low and 12 ms
high. On an AP, a station the AP is the bottleneck for then keeps about
12 ms of airtime queued in the firmware, and every frame to it waits
behind that queue. What the firmware needs queued to stay busy depends
on the station: about two of its PPDUs, plus the airtime that waits for
its TX completion to be reaped.

Patch 1 lets a driver set a station's limits in mac80211. Patch 2 keeps
a single low-rate PPDU from setting the rate mac80211 estimates airtime
from, which made AQL charge the frames after it many times their
airtime. Patch 3 has ath11k set each station's limit from the length of
its PPDUs and the charge per air time it measures.

Results on an IPQ8074 AP (firmware WLAN.HK.2.12-01460) with one
station the AP is the bottleneck for, under downlink TCP load: one-way
delay of a UDP probe to the station, 3 interleaved runs each, on
OpenWrt's versions of patches 2 and 3 set to this series' limits:

Mbit/s probe delay median / p99 / p99.9
default limits 83.8 11.4 / 25.2 / 32.6 ms
this series 83.7 10.7 / 21.1 / 24.9 ms

p99 was lower in every run (20.6-21.1 ms against 24.3-27.2 ms). The
one-way delay includes the station's own retransmissions.

The series sits on the ath11k AQL series v7 [1] and on its base, José
Ignacio Tornos Martinez's TX flow control v8 1-3 [2]. Patch 1 is for
mac80211; 2 and 3 need it.

I used Claude (Anthropic) to help write these patches.

[1] https://lore.kernel.org/all/20261128234039.2255455-1-julius@xxxxxxxxxxxxxx/
[2] https://lore.kernel.org/all/20261021060725.242681-1-jtornosm@xxxxxxxxxx/

Julius Bairaktaris (3):
wifi: mac80211: let a driver set the AQL limits of a station
wifi: ath11k: keep a lone low-rate PPDU from the rate given to
mac80211
wifi: ath11k: set the AQL limits of a station from its PPDUs

drivers/net/wireless/ath/ath11k/core.h | 38 +++++++
drivers/net/wireless/ath/ath11k/dp_rx.c | 127 +++++++++++++++++++++++-
drivers/net/wireless/ath/ath11k/dp_tx.c | 2 +-
drivers/net/wireless/ath/ath11k/mac.c | 47 +++++++++
drivers/net/wireless/ath/ath11k/mac.h | 2 +
include/net/mac80211.h | 21 ++++
net/mac80211/debugfs.c | 19 +++-
net/mac80211/debugfs_sta.c | 8 +-
net/mac80211/sta_info.c | 37 +++++++
net/mac80211/sta_info.h | 7 ++
net/mac80211/tx.c | 4 +-
11 files changed, 302 insertions(+), 10 deletions(-)


base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
prerequisite-message-id: <20261021060725.242681-1-jtornosm@xxxxxxxxxx>
prerequisite-message-id: <20261128234039.2255455-1-julius@xxxxxxxxxxxxxx>
prerequisite-patch-id: ff44eb6f1d673e75bc013e3ffc870d7d30252c17
prerequisite-patch-id: 2cde5e2a788f79e4b8c858a60ec11cd120b1b97e
prerequisite-patch-id: c86d3c9047c851f45b5d46398850c9d810d82258
prerequisite-patch-id: c3c9a2d5971c3e294bbef307df3befb0ff6678fd
prerequisite-patch-id: 46edfde76690d68785bc79ce81641524dcfffb4b
prerequisite-patch-id: 013f4003b682991301e1f6e4c381b30ba7ef38c7
prerequisite-patch-id: a3d4787acbb5c0739313b5f098bfb19add947ba7
prerequisite-patch-id: 0118167889d6928ea3b7922b59cd92c629d8ee1a
prerequisite-patch-id: f04db5549c465332f7abd795b0b3ed0984ca3444
prerequisite-patch-id: e4fd4524faccfc5c605a649903acb239d6b0a1dd
prerequisite-patch-id: 46dda0c1aa2552cbd23ab02fc8478d76bc8c8e99
prerequisite-patch-id: 2119096a59fa9de3cb57d63d6175874715068121
prerequisite-patch-id: 9532ca6465e7ec842bfb9e1e515acfa1cc49e860
--
2.53.0