[PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association

From: Hangtian Zhu

Date: Wed Nov 25 2026 - 21:07:38 EST


Hi,

This series fixes ath12k MLO simultaneous-link capability advertisement
and populates the maximum and recommended simultaneous-link counts in
station-mode WMI peer association.

Firmware reports the maximum simultaneous-link count as raw N, while
the MLD Capabilities and Operations field advertises N-1. Normalize the
value during WMI service-ready capability parsing, then convert the
advertised value back to raw N when preparing peer association. For
infrastructure-focused chipsets, derive the advertised maximum from
the available radios rather than the firmware field.

The series also replaces the shared global iftype capability table with
per-wiphy storage, avoiding capability overwrites between hardware
instances. Initialize STA/AP entries from the normalized firmware
capabilities for MLO-capable hardware groups.

Use the AP recommendation already tracked in sta->ext_mld_capa_ops.
No mac80211 changes are needed. Recommendations are raw counts; values
0 (no recommendation), 1 (reserved), or above the local maximum fall
back to that maximum. In AP mode, leave the new peer-association fields
zero because the current station API does not expose the non-AP peer's
maximum simultaneous-link capability.

The series adds per-radio ath12k debugfs controls for the advertised
maximum simultaneous-link count and EMLSR support on MLO-capable hardware
groups. The mlo_max_simultaneous_links and eml_capa_present entries are
accessible under /sys/kernel/debug/ieee80211/phy0/ath12k/ through the
existing ath12k symlink. Writes from any radio update the shared per-wiphy
STA/AP capability entries. These allow validation of host-side capability
advertisement without firmware changes.

Series summary
Patch 1 normalizes firmware-reported maximum simultaneous links to N-1.
Patch 2 selects firmware-count conversion or radio-count derivation
according to hardware policy.
Patch 3 initializes STA/AP MLO iftype capabilities in per-wiphy storage.
Patch 4 fills station-mode WMI peer-association link counts using the
advertised local maximum and the existing AP recommendation.
Patch 5 adds debugfs control for the advertised simultaneous-link count.
Patch 6 adds debugfs control for advertised EMLSR support.

Thanks for the review.

Hangtian Zhu

Hangtian Zhu (6):
wifi: ath12k: encode MLD max simultaneous links as N-1
wifi: ath12k: derive MLD max simultaneous links by hw policy
wifi: ath12k: initialize per-wiphy MLO iftype ext capabilities
wifi: ath12k: fill MLO simultaneous-link fields in peer assoc WMI
wifi: ath12k: add debugfs control for MLO simultaneous links
wifi: ath12k: add debugfs control for EMLSR support advertisement

drivers/net/wireless/ath/ath12k/core.h | 4 +
drivers/net/wireless/ath/ath12k/debugfs.c | 168 +++++++++++++++++++++
drivers/net/wireless/ath/ath12k/hw.h | 1 +
drivers/net/wireless/ath/ath12k/mac.c | 57 ++++++-
drivers/net/wireless/ath/ath12k/wifi7/hw.c | 7 +
drivers/net/wireless/ath/ath12k/wmi.c | 74 ++++++++-
drivers/net/wireless/ath/ath12k/wmi.h | 9 ++
7 files changed, 312 insertions(+), 8 deletions(-)


base-commit: ff4c7359e310744a7abe53cf66d921fa2969eb19
--
2.25.1