mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association
@ 2026-12-02 23:34 Christopher Griffin
  2026-12-03  1:29 ` Hangtian Zhu
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Griffin @ 2026-12-02 23:34 UTC (permalink / raw)
  To: hangtian.zhu
  Cc: Jeff Johnson, Baochen Qiang, Rameshkumar Sundaram, ath12k,
	linux-wireless, linux-kernel

Hi Hangtian,

I tested the series on QCN9274 as a non-AP MLD across chips, which may
be useful since the posted tests are on WCN7850.

Setup: an IPQ9574 access point (Arista C-460) with three QCN9274 hw2.0
cards on PCIe, joined into one hardware group by a WSI ring in the
device tree, so one wiphy with 2.4, 5 and 6 GHz radios. I applied all
six patches to the ath12k in OpenWrt's backports 7.2 (Linux 6.18.60).
Only one hunk did not apply: the wifi7/hw.c hunk of 2/6 for a hw_params
entry that tree does not have. QCN9274 hw2.0 gets
mlo_max_simul_links_by_num_radios = true. The station was an MLD on the
5 GHz and 6 GHz radios (two chips), associated to a third-party Wi-Fi 7
AP MLD over OWE.

Results:

- Advertisement. In the Association Request's Basic Multi-Link element,
the unpatched driver sends MLD Capabilities 0x0000 and no EML
Capabilities. With the series it sends MLD Capabilities 0x0022 (max
simultaneous links 2, from the three radios) and EML Capabilities
0x406b (EMLSR supported). Writing 0 to mlo_max_simultaneous_links
and eml_capa_present takes effect on the next association: MLD
Capabilities 0x0020, no EML. The AP lists the station as STR and
EMLSR capable with the defaults, and as neither with 0/0.

- Throughput, iperf3 TCP, 4 streams, 30 s, both links at 160 MHz. In
the same boot with the same driver, changing only the debugfs values,
uplink was 2.15 and 2.16 Gbit/s with the defaults (two runs) and
1.75 Gbit/s with 0/0. The unpatched driver gave 1.83 Gbit/s in an
earlier boot. Downlink was about the same in all cases: 2.1 to 2.3
Gbit/s average, about 2.5 Gbit/s steady. The AP split its downlink
across both links whatever we advertised, so I read the uplink gain
as coming from 4/6's peer-assoc link counts. With 6 GHz at 320 MHz
and 5 GHz at 160 MHz: 2.50 Gbit/s up and 2.54 down (2.7 to 2.8
steady).

- Stability. Module reload over the running driver, six associations,
eight 30 s runs: no WARN, no oops, no ath12k error.

Side note, not about this series: with the station split over two
chips, device_dp_stats counts "Frame OOR" on both chips during downlink
runs (805 to 3,394 per 30 s run with the series; about 12,900 in one
unpatched run). TCP retransmits follow it. I have not looked further
yet.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1

Tested-by: Christopher Griffin <christophergriffin05@gmail.com>

The test runs and this report were done with Claude, an AI coding
assistant, on my hardware.

Thanks,
Christopher

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association
  2026-12-02 23:34 [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association Christopher Griffin
@ 2026-12-03  1:29 ` Hangtian Zhu
  0 siblings, 0 replies; 3+ messages in thread
From: Hangtian Zhu @ 2026-12-03  1:29 UTC (permalink / raw)
  To: christophergriffin05
  Cc: jjohnson, baochen.qiang, rameshkumar.sundaram, ath12k,
	linux-wireless, linux-kernel


On 2026-12-02T23:34:44+00:00, Christopher Griffin <christophergriffin05@gmail.com> wrote:
> Hi Hangtian,
>
> I tested the series on QCN9274 as a non-AP MLD across chips, which may
> be useful since the posted tests are on WCN7850.
>
> Setup: an IPQ9574 access point (Arista C-460) with three QCN9274 hw2.0
> cards on PCIe, joined into one hardware group by a WSI ring in the
> device tree, so one wiphy with 2.4, 5 and 6 GHz radios. I applied all
> six patches to the ath12k in OpenWrt's backports 7.2 (Linux 6.18.60).
> Only one hunk did not apply: the wifi7/hw.c hunk of 2/6 for a hw_params
> entry that tree does not have. QCN9274 hw2.0 gets
> mlo_max_simul_links_by_num_radios = true. The station was an MLD on the
> 5 GHz and 6 GHz radios (two chips), associated to a third-party Wi-Fi 7
> AP MLD over OWE.
>
> Results:
>
> - Advertisement. In the Association Request's Basic Multi-Link element,
> the unpatched driver sends MLD Capabilities 0x0000 and no EML
> Capabilities. With the series it sends MLD Capabilities 0x0022 (max
> simultaneous links 2, from the three radios) and EML Capabilities
> 0x406b (EMLSR supported). Writing 0 to mlo_max_simultaneous_links
> and eml_capa_present takes effect on the next association: MLD
> Capabilities 0x0020, no EML. The AP lists the station as STR and
> EMLSR capable with the defaults, and as neither with 0/0.
>
> - Throughput, iperf3 TCP, 4 streams, 30 s, both links at 160 MHz. In
> the same boot with the same driver, changing only the debugfs values,
> uplink was 2.15 and 2.16 Gbit/s with the defaults (two runs) and
> 1.75 Gbit/s with 0/0. The unpatched driver gave 1.83 Gbit/s in an
> earlier boot. Downlink was about the same in all cases: 2.1 to 2.3
> Gbit/s average, about 2.5 Gbit/s steady. The AP split its downlink
> across both links whatever we advertised, so I read the uplink gain
> as coming from 4/6's peer-assoc link counts. With 6 GHz at 320 MHz
> and 5 GHz at 160 MHz: 2.50 Gbit/s up and 2.54 down (2.7 to 2.8
> steady).
>
> - Stability. Module reload over the running driver, six associations,
> eight 30 s runs: no WARN, no oops, no ath12k error.
>
> Side note, not about this series: with the station split over two
> chips, device_dp_stats counts "Frame OOR" on both chips during downlink
> runs (805 to 3,394 per 30 s run with the series; about 12,900 in one
> unpatched run). TCP retransmits follow it. I have not looked further
> yet.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
>
> Tested-by: Christopher Griffin <christophergriffin05@gmail.com>
>
> The test runs and this report were done with Claude, an AI coding
> assistant, on my hardware.
>
> Thanks,
> Christopher
Thanks for sharing the test results Christopher, the debugfs entries may
be temporary, I raised another set of series extend NL80211 interface to
allow userspace (wpa_supplicant) to override mld_capa/eml_capa which is
under internal review. Please stay tuned.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association
@ 2026-11-26  2:07 Hangtian Zhu
  0 siblings, 0 replies; 3+ messages in thread
From: Hangtian Zhu @ 2026-11-26  2:07 UTC (permalink / raw)
  To: jjohnson, baochen.qiang, rameshkumar.sundaram
  Cc: ath12k, linux-kernel, linux-wireless

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03  1:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 23:34 [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association Christopher Griffin
2026-12-03  1:29 ` Hangtian Zhu
  -- strict thread matches above, loose matches on Subject: below --
2026-11-26  2:07 Hangtian Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®