[PATCH 0/4] wifi: ath11k: beacon protection and firmware airtime fairness
From: Andrei-Alexandru Bleortu
Date: Sat Oct 03 2026 - 11:56:25 EST
Firmware features ath11k does not use yet, found while bringing up a
Ubiquiti UniFi U6 Enterprise (IPQ5018 with two QCN9074) with the data
path offloaded to NSS: a debugfs view of the firmware's services, beacon
protection and firmware airtime fairness, plus the mac80211 change the
last one needs.
Patch 1 lists the firmware's WMI service bits in debugfs, as ath10k
does: whether a feature exists is usually a service bit, and ath11k only
logs part of the map at debug level.
Patch 2 is beacon protection, following ath12k's implementation: the
firmware signs beacons with the BIGTK. Checked over the air on both
chips: every beacon in a monitor capture carried a Management MIC
element whose BIP-CMAC-128 MIC verifies against the BIGTK hostapd
installed (624 of 624; none with another radio's key), and a
wpa_supplicant client verified the SSID from a protected beacon.
Patch 3 is Felix Fietkau's mac80211 change from OpenWrt, which gives
drivers the station airtime weight (sta_set_airtime_weight). Patch 4
needs it; it is included unchanged, with his authorship.
Patch 4 is firmware airtime fairness: per-station airtime shares the
firmware schedules by, derived from the stations' airtime weights. With
the data path offloaded, mac80211's own airtime scheduler never sees the
frames, so the firmware is the only place fairness can happen there. A
station capped at 10% under strict scheduling drops from 885 to
122 Mbit/s and recovers when uncapped; at its normal fair share
throughput is unchanged (900 Mbit/s on 5 GHz HE80). The firmware needs
its ATF group defined before it accepts shares, which the commit
message details.
Patch 3 is for mac80211; the others go through the ath tree, and patch 4
depends on patch 3.
The patches were written with an AI coding assistant (Claude Code),
which also drafted the changelogs; the testing above was done on the
device.
Andrei-Alexandru Bleortu (3):
wifi: ath11k: add a debugfs file listing the firmware WMI services
wifi: ath11k: support beacon protection
wifi: ath11k: support firmware airtime fairness
Felix Fietkau (1):
wifi: mac80211: notify driver on airtime weight changes
drivers/net/wireless/ath/ath11k/core.h | 2 +
drivers/net/wireless/ath/ath11k/debugfs.c | 15 ++
drivers/net/wireless/ath/ath11k/mac.c | 166 +++++++++++++++++++++-
drivers/net/wireless/ath/ath11k/wmi.c | 99 +++++++++++++
drivers/net/wireless/ath/ath11k/wmi.h | 58 +++++++-
include/net/mac80211.h | 5 +
net/mac80211/cfg.c | 6 +-
net/mac80211/driver-ops.c | 4 +
net/mac80211/driver-ops.h | 19 +++
net/mac80211/sta_info.c | 7 +-
net/mac80211/trace.h | 27 ++++
11 files changed, 400 insertions(+), 8 deletions(-)
base-commit: f0406245cb9855e6318335a8a223551354291a46