Repository navigation
FROMLIST: [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association - #1552
FROMLIST: [PATCH ath-next 0/6] wifi: ath12k: fix MLO capability advertisement and peer association#1552Hangtian Zhu (zhuhangtian) wants to merge 11 commits into
Conversation
|
Merge Check Failed: No Change Task Found No associated change tasks found for CR 4599065 on any of the following entities: Entities:
CR: 4599065 Please ensure the CR has a change task associated with at least one of the entities for this branch. |
Salendarsingh Gaud (sgaud-quic)
left a comment
There was a problem hiding this comment.
Compilation error :
https://github.com/qualcomm-linux/kernel-config/actions/runs/45750284664/job/139676212336
/opt/actions-runner/_work/kernel-config/kernel-config/kernel/drivers/net/wireless/ath/ath12k/mac.c: In function ‘ath12k_peer_assoc_h_mlo’:
/opt/actions-runner/_work/kernel-config/kernel-config/kernel/drivers/net/wireless/ath/ath12k/mac.c:3603:37: error: ‘struct ieee80211_sta’ has no member named ‘ext_mld_capa_ops’
3603 | u16_get_bits(sta->ext_mld_capa_ops,
PR #1552 — validate-patchPR: #1552
Final Summary
|
PR #1552 — checker-log-analyzerPR: #1552
Detailed report: Full report
|
🔨 Build Failure Analysis — PR #1552PR: #1552
Verdict1 of 1 errors is introduced by this PR due to a missing dependency on an upstream mac80211 patch series. 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1552PR: #1552
Verdict1 of 1 errors is introduced by this PR. The PR depends on an upstream mac80211 patch that adds the 📎 Detailed analysis: Full report |
UHR defines bit 8 to mean multi-link power management, add a definition for it. Also reindent the other definitions to use tabs, not spaces. Link: https://patch.msgid.link/20260428110915.c6b6a06016cf.I7ebd97397507d320124547017e21191b55c5d34d@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
For UHR multi-link power management, the driver/device needs to know if the AP supports it, to be able to use it. Track the AP's extended MLD capabilities and operations so it does. Link: https://patch.msgid.link/20260428110915.e4038a00e4b2.I323686be5d4a73e8b962019a30d51309496b86a6@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
We check that extended MLD capabilities and operations are consistent across APs in an AP MLD, but didn't check reserved fields since they could be defined to differ. Check bit 8 now since it's defined by UHR to be consistent. Link: https://patch.msgid.link/20260428110915.34158027395b.I9df13d3f2588d79294559fad64182acc9edf3f30@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
…a/ops For UHR, multi-link power-management capability lives there, and so it's needed that hostapd knows what to advertise, and clients should have it shown to userspace for information. Repurpose the existing NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS by renaming it to NL80211_ATTR_EXT_MLD_CAPA_AND_OPS (with a define for compatibility) and advertise the capabilities. We can also later use the value, if needed, to set per-station capabilities on STAs added to AP interfaces. Link: https://patch.msgid.link/20260428110915.e808e70feed6.I378a7c017bfc1ebb072fa8d5d1db2ac9b45596c9@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
If the AP has extended MLD capa/ops we may advertise our own from userspace. Also add the driver's in this case. This is fine since the only one right now from the driver is UHR ML-PM and that's only relevant if the AP already has it too. Link: https://patch.msgid.link/20260428110915.8ddef945c81e.I43e05e424ff50a1d88b18161b843c1125c3e07fb@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Firmware reports Max Number Of Simultaneous Links in raw form, but MLD Capabilities and Operations advertises this value as N-1 per IEEE Std 802.11be-2024 Table 9-417n. Normalize this in ath12k_wmi_tlv_mac_phy_caps_ext_parse() before storing pdev->cap.mld_cap, so all users consume spec-encoded values. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-2-hangtian.zhu@oss.qualcomm.com/
On infrastructure-focused chipsets, firmware may report a maximum simultaneous-link count that does not reflect the available radio combination. When the counts differ, converting the firmware value to N-1 still advertises an incorrect Max Number Of Simultaneous Links in the wiphy MLD capabilities exposed to userspace and in MLO association requests. Userspace and peers therefore see a simultaneous-link limit that does not describe the configured hardware. Add mlo_max_simul_links_by_num_radios in struct ath12k_hw_params and use it to select between firmware-field conversion and radio-count-based derivation of the encoded max simultaneous links value. mlo_max_simul_links_by_num_radios is enabled for QCN9274/QCN6432/IPQ5332/IPQ5424 and disabled for WCN7850/QCC2072. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/
MLO iftype extended capabilities are currently stored in a single global array ath12k_iftypes_ext_capa, shared by all ath12k_hw instances. When more than one wiphy is registered, ath12k_mac_hw_register() on a later wiphy overwrites firmware-derived EML/MLD capability fields used by earlier wiphys, because mac80211 points all of them at the same storage. Fix this by keeping iftype ext capability state per ath12k_hw/wiphy: copy a read-only template into ah->iftypes_ext_capa during registration and point mac80211 at the per-wiphy array. Rename ath12k_iftypes_ext_capa to ath12k_iftypes_ext_capa_template to make the data flow explicit: the table is immutable source data, while ah->iftypes_ext_capa is per-wiphy capability storage. ATH12K_WIPHY_IFTYPE_EXT_CAPA_MAX is set to 3 to represent the per-wiphy entries ath12k publishes and updates: one generic entry (NL80211_IFTYPE_UNSPECIFIED / iftype 0) and two role-specific entries (STA and AP). For MLO-capable wiphys, initialize station and AP entries from the normalized firmware capabilities, preserving the existing capability source. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Fixes: d33bc46 ("wifi: ath12k: advertise MLO support and capabilities") Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-4-hangtian.zhu@oss.qualcomm.com/
…oc WMI Populate max_num_simultaneous_links and recommended_max_num_simultaneous_links for MLO station-mode peer association and pass raw counts to firmware in the WMI peer-assoc command. Derive the local maximum from the station iftype's advertised MLD capabilities and operations instead of caching another copy in ath12k_hw. Convert its IEEE 802.11be N-1 encoding to raw N when preparing the peer-association argument. Read the AP recommendation from sta->ext_mld_capa_ops, which mac80211 already tracks before the station enters IEEE80211_STA_ASSOC. The recommendation is a raw count; use the local maximum when it is zero, reserved (one), or exceeds that maximum. Leave the new fields zero in AP mode: the current station API does not provide the non-AP peer's maximum simultaneous-link capability, and the AP's own capability is not a valid substitute. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-5-hangtian.zhu@oss.qualcomm.com/
Add mlo_max_simultaneous_links under the per-radio ath12k debugfs directory for MLO-capable hardware groups. The value uses IEEE 802.11be N-1 encoding: 0 advertises one simultaneous link, 1 advertises two, and so on. Use this control before station association or AP startup to validate host-side MLD capability advertisement and exercise link-count-dependent MLO behavior without firmware changes. Bound writes to the first local radio's normalized firmware capability. Infrastructure targets derive this field from the hardware-group radio count; client targets using the firmware-count policy expose a single pdev. Update only the station and AP iftype capability entries, leaving the generic entry unchanged. Read the current value directly from the station entry. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-6-hangtian.zhu@oss.qualcomm.com/
…sement Add eml_capa_present under the per-radio ath12k debugfs directory for MLO-capable hardware groups to toggle the advertised IEEE80211_EML_CAP_EMLSR_SUPP bit. Use this control before station association or AP startup to validate host-side EML capability advertisement and exercise combinations with the maximum simultaneous-link advertisement without firmware changes. Read the current value directly from the station iftype's advertised EML capabilities. Reject enabling EMLSR if any local radio lacks firmware support. Update only the IEEE80211_EML_CAP_EMLSR_SUPP bit in the station and AP entries, preserving other capability fields and leaving the generic entry unchanged. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Signed-off-by: Hangtian Zhu <hangtian.zhu@oss.qualcomm.com> Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-7-hangtian.zhu@oss.qualcomm.com/
2d6a247 to
91428ac
Compare
updated with pulling upstream dependency |
PR #1552 — validate-patchPR: #1552
Final Summary
Additional context: This PR combines two related patch series:
The FROMLIST commits depend on the UPSTREAM commits and form a complete, logical series. The "partial" integration status for commits 6-11 is expected — they were posted to the mailing list today (Nov 26, 2026) and have not yet been reviewed or merged. The PR correctly uses FROMLIST: prefix for these pending patches. All commit messages, authorship, and diffs are faithful to their lore sources. No validation issues found.
|
PR #1552 — checker-log-analyzerPR: #1552
Detailed report: Full report
|
[PATCH ath-next 1/6] wifi: ath12k: encode MLD max simultaneous links as N-1
[PATCH ath-next 2/6] wifi: ath12k: derive MLD max simultaneous links by hw policy
[PATCH ath-next 3/6] wifi: ath12k: initialize per-wiphy MLO iftype ext capabilities
[PATCH ath-next 4/6] wifi: ath12k: fill MLO simultaneous-link fields in peer assoc WMI
[PATCH ath-next 5/6] wifi: ath12k: add debugfs control for MLO simultaneous links
[PATCH ath-next 6/6] wifi: ath12k: add debugfs control for EMLSR support advertisement
CRs-Fixed: 4599065
Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-1-hangtian.zhu@oss.qualcomm.com/