Skip to content

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

Open
Hangtian Zhu (zhuhangtian) wants to merge 11 commits into
qualcomm-linux:qcom-6.18.yfrom
zhuhangtian:qcom-6.18.y
Open

Hangtian Zhu (zhuhangtian) wants to merge 11 commits into
qualcomm-linux:qcom-6.18.yfrom
zhuhangtian:qcom-6.18.y

Conversation

@zhuhangtian

@zhuhangtian Hangtian Zhu (zhuhangtian) commented Nov 26, 2026 •

Copy link
Copy Markdown

[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/

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No Change Task Found

No associated change tasks found for CR 4599065 on any of the following entities:

Entities:

  • kernel.qli.2.0

CR: 4599065

Please ensure the CR has a change task associated with at least one of the entities for this branch.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

@qlijarvis

Copy link
Copy Markdown

PR #1552 — validate-patch

PR: #1552

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — all 6 commits have correct lore.kernel.org links in commit messages
  2. Lore link matches PR commits: Partial — diff content is faithful to lore, but all 6 subject lines are truncated and missing key descriptive phrases
  3. Upstream patch status: In review — posted Nov 26, 2026; no maintainer decision yet (ACK/NAK)
  4. PR present in qcom-next/topics: Partial - 6/6 commit(s) only have partial integration evidence
Verdict: ⚠️ — click to expand

🔍 Patch Validation Report

PR: #1552 - wifi: ath12k: fix MLO capability advertisement and peer association (6 commits)
Upstream: https://lore.kernel.org/linux-wireless/20261126020727.3273337-1-hangtian.zhu@oss.qualcomm.com/
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ❌ All 6 commits have truncated subject lines missing key descriptive phrases
Body preserves rationale ✅ Commit message bodies are identical to lore
Fixes tag present/correct N/A No Fixes tags in these patches
Authorship preserved ✅ Author correctly preserved (FROMLIST allows submitter in From:)
Backport note (if applicable) N/A FROMLIST prefix used correctly

Subject Line Truncation Issues

All 6 commits have truncated subject lines that omit important descriptive information:

Commit PR Subject (truncated) Lore Subject (complete) Missing Text
1/6 FROMLIST: wifi: ath12k: encode MLD max simultaneous links wifi: ath12k: encode MLD max simultaneous links as N-1 as N-1
2/6 FROMLIST: wifi: ath12k: derive MLD max simultaneous links wifi: ath12k: derive MLD max simultaneous links by hw policy by hw policy
3/6 FROMLIST: wifi: ath12k: initialize per-wiphy MLO iftype wifi: ath12k: initialize per-wiphy MLO iftype ext capabilities ext capabilities
4/6 FROMLIST: wifi: ath12k: fill MLO simultaneous-link fields wifi: ath12k: fill MLO simultaneous-link fields in peer assoc WMI in peer assoc WMI
5/6 FROMLIST: wifi: ath12k: add debugfs control for MLO wifi: ath12k: add debugfs control for MLO simultaneous links simultaneous links
6/6 FROMLIST: wifi: ath12k: add debugfs control for EMLSR wifi: ath12k: add debugfs control for EMLSR support advertisement support advertisement

Diff

File Status Notes
drivers/net/wireless/ath/ath12k/wmi.c ✅ Code changes identical to lore (commits 1, 2, 4)
drivers/net/wireless/ath/ath12k/hw.h ✅ Code changes match lore (commit 2)
drivers/net/wireless/ath/ath12k/wifi7/hw.c ✅ Code changes match lore (commit 2)
drivers/net/wireless/ath/ath12k/core.h ✅ Code changes match lore (commit 3)
drivers/net/wireless/ath/ath12k/mac.c ✅ Code changes match lore (commits 3, 4)
drivers/net/wireless/ath/ath12k/wmi.h ✅ Code changes match lore (commit 4)
drivers/net/wireless/ath/ath12k/debugfs.c ✅ Code changes match lore (commits 5, 6)

Upstream Patch Status

Commit Community Verdict
1/6 encode MLD max simultaneous links as N-1 ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet
2/6 derive MLD max simultaneous links by hw policy ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet
3/6 initialize per-wiphy MLO iftype ext capabilities ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet
4/6 fill MLO simultaneous-link fields in peer assoc WMI ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet
5/6 add debugfs control for MLO simultaneous links ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet
6/6 add debugfs control for EMLSR support advertisement ⏳ Decision Pending — posted Nov 26, 2026; no maintainer response yet

Analysis: This is a fresh patch series posted to linux-wireless on Nov 26, 2026 (today). The lore thread shows no replies yet from maintainers — no acceptance signals (applied/queued/Reviewed-by/Acked-by) and no rejection signals (NAK). The series is under initial community review.

qcom-next/topics Presence

Commit Status
All 6 commits ⚠️ Partial — subject or partial tree evidence found in qcom-next, but full change not verified

Analysis: The integration presence report shows "partial" evidence for all 6 commits in qcom-next. This is likely a consequence of the truncated subject lines in the PR — the subject-based search in qcom-next may be finding similar commits but cannot confirm full match due to the subject mismatch. The commits are not present in kernel-topics.

Issues Found

  1. Subject line truncation (all 6 commits) — Every commit subject is missing the final descriptive phrase from the lore original. This reduces clarity and makes git log searches less effective. The truncation appears systematic, suggesting the subjects were manually shortened rather than preserved verbatim from lore.

  2. Integration presence uncertainty — The "partial" status in qcom-next for all commits suggests the subject truncation is preventing deterministic verification of whether these changes are already integrated.

Verdict

Request changes before merge. The diff content and commit message bodies faithfully represent the lore patches, and authorship is correctly preserved. However, all 6 commit subjects are truncated and missing key descriptive information from the upstream lore posting. Kernel commit subjects should be preserved verbatim when cherry-picking from lore to maintain traceability and searchability.

Recommendation

Amend all 6 commits to restore the complete subject lines from lore:

# For each commit, use:
git commit --amend -m "FROMLIST: <full lore subject line>"

# Example for commit 1:
git commit --amend -m "FROMLIST: wifi: ath12k: encode MLD max simultaneous links as N-1"

After fixing the subjects, the integration presence check should be re-run to confirm whether these commits are already in qcom-next.

Final Summary

  1. Lore link present: Yes — all 6 commits have correct lore.kernel.org links in commit messages
  2. Lore link matches PR commits: Partial — diff content is faithful to lore, but all 6 subject lines are truncated and missing key descriptive phrases
  3. Upstream patch status: In review — posted Nov 26, 2026; no maintainer decision yet (ACK/NAK)
  4. PR present in qcom-next/topics: Partial — 6/6 commits show partial evidence in qcom-next but cannot be definitively verified due to subject line mismatch; not present in topics

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/6 [PATCH 1/6] FROMLIST: wifi: ath12k: encode MLD max simultaneous links partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
2/6 [PATCH 2/6] FROMLIST: wifi: ath12k: derive MLD max simultaneous links partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
3/6 [PATCH 3/6] FROMLIST: wifi: ath12k: initialize per-wiphy MLO iftype partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
4/6 [PATCH 4/6] FROMLIST: wifi: ath12k: fill MLO simultaneous-link fields partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
5/6 [PATCH 5/6] FROMLIST: wifi: ath12k: add debugfs control for MLO partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
6/6 [PATCH 6/6] FROMLIST: wifi: ath12k: add debugfs control for EMLSR partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial

Final Status

overall_status: PARTIAL
present_commits: 0/6
partial_commits: 6/6
missing_commits: 0/6
topics_checked_for_commits: 6/6
final_summary: PR present in qcom-next/topics: Partial - 6/6 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1552 — checker-log-analyzer

PR: #1552
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45748005756

Checker Result Summary
Checker Result Summary
checkpatch ❌ 6 commits with long Tested-on: lines (>75 chars)
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed (build errors in unrelated drivers are pre-existing)
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 1 commit with content mismatch vs upstream
tag-check ✅ All commits have valid FROMLIST: prefix

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1552 - wifi: ath12k: MLO simultaneous links and EMLSR support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45748005756

Checker Result Summary
checkpatch ❌ 6 commits with long Tested-on: lines (>75 chars)
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed (build errors in unrelated drivers are pre-existing)
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 1 commit with content mismatch vs upstream
tag-check ✅ All commits have valid FROMLIST: prefix

❌ checkpatch

Root cause: All 6 commits have Tested-on: trailer lines exceeding 75 characters (commit body line length limit).

Failure details:

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)

Commit fd60a58443e2 ("FROMLIST: wifi: ath12k: encode MLD max simultaneous links as N-1")
#14: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Commit 71034b102c09 ("FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy")
#22: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Commit f3247272eded ("FROMLIST: wifi: ath12k: initialize per-wiphy MLO iftype ext capabilities")
#30: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Commit d3ffa3ac528d ("FROMLIST: wifi: ath12k: fill MLO simultaneous-link fields in peer assoc WMI")
#26: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Commit 8f81ca664e74 ("FROMLIST: wifi: ath12k: add debugfs control for MLO simultaneous links")
#24: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Commit 2d6a247c1994 ("FROMLIST: wifi: ath12k: add debugfs control for EMLSR support advertisement")
#23: Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Analysis:
The Tested-on: line is 88 characters long, exceeding the 75-character commit body line limit. However, this is a false positive — Tested-on: is a structured metadata trailer (like Link:, Signed-off-by:, etc.) used by the ath10k/ath11k/ath12k subsystems to document hardware test coverage. These trailers are conventionally exempt from line-length limits because they contain hardware identifiers that cannot be meaningfully wrapped.

Fix: None required. This is an acceptable checkpatch warning for ath12k patches. The upstream maintainers (Kalle Valo, Jeff Johnson) accept Tested-on: lines of this length as standard practice in the wireless subsystem.

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git f56859b2983f..2d6a247c1994

❌ check-patch-compliance

Root cause: Commit 71034b1 ("FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy") has content differences compared to the upstream patch referenced in its Link: tag.

Failure details:

Checking commit: FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy
Change is different from the one mentioned in Link

Analysis:
The checker detected that the patch content in the PR differs from the upstream version at:
Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/

This could be due to:

  1. Context-only differences — surrounding code differs between the PR's base and upstream's base (not a real issue)
  2. Legitimate adaptations — the patch was modified to apply cleanly to the target branch (should be documented in commit body)
  3. Missing/extra hunks — the patch is incomplete or has additional changes not present upstream (requires investigation)

Fix:
Fetch the upstream patch and compare:

b4 am --single-message -C -l -3 https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/ -o /tmp/upstream
git format-patch -1 71034b102c09 --stdout > /tmp/pr-patch

# Compare only the diff content (ignore context line numbers)
diff <(awk '/^diff/,/^--$/' /tmp/pr-patch | grep -E '^[+-][^+-]') \
     <(awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]')

Action required:

  • If differences are context-only → no fix needed; re-run CI or document in commit body
  • If legitimate adaptations exist → add a note in the commit body explaining the changes (e.g., "Adapted for qcom-next: adjusted context due to missing dependency X")
  • If missing/extra hunks → either add the missing changes or split the extra changes into a separate commit

Reproduce locally:

cd /path/to/kernel
git checkout 71034b102c09
../kernel-checkers/check-patch-compliance.sh f56859b2983f..71034b102c09

Verdict

2 blockers to fix before merge:

  1. check-patch-compliance failure — Investigate and resolve the content mismatch in commit 71034b1. This is a blocker because it indicates the patch may not faithfully represent the upstream version, which violates the FROMLIST: prefix contract.

  2. checkpatch warnings — The Tested-on: line-length warnings are acceptable false positives for ath12k patches and do not block merge. No action required.

Recommendation:
Focus on resolving the check-patch-compliance content mismatch. Once that's addressed, the PR is ready to merge (the checkpatch warnings are standard for this subsystem).

@qlijarvis

Copy link
Copy Markdown

🔨 Build Failure Analysis — PR #1552

PR: #1552
Build run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45750284664

# Error File:Line PR-introduced? Root Cause
1 'struct ieee80211_sta' has no member named 'ext_mld_capa_ops' drivers/net/wireless/ath/ath12k/mac.c:3603 Yes PATCH 4/6 references sta->ext_mld_capa_ops field that doesn't exist in the current kernel's mac80211 subsystem. This field is expected to be added by an upstream mac80211 patch that hasn't been merged into the base kernel yet.

Verdict

1 of 1 errors is introduced by this PR due to a missing dependency on an upstream mac80211 patch series.

📎 Detailed analysis: Full report

@qlijarvis

Copy link
Copy Markdown

🔨 Build Failure Analysis — PR #1552

PR: #1552
Build run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45750284664

# Error File:Line PR-introduced? Root Cause
1 'struct ieee80211_sta' has no member named 'ext_mld_capa_ops' drivers/net/wireless/ath/ath12k/mac.c:3603 Yes Patch 4/6 accesses sta->ext_mld_capa_ops field that doesn't exist in the current kernel tree. This field is likely introduced in a missing dependency patch from the upstream series.

Verdict

1 of 1 errors is introduced by this PR. The PR depends on an upstream mac80211 patch that adds the ext_mld_capa_ops field to struct ieee80211_sta, but that dependency is not included in this PR or the base kernel tree.

📎 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/
@zhuhangtian

Copy link
Copy Markdown
Author

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,

updated with pulling upstream dependency

@qlijarvis

Copy link
Copy Markdown

PR #1552 — validate-patch

PR: #1552

Verdict Issues Detailed Report
✅ 0 Full report

Final Summary

  1. Lore link present: Yes — all 11 commits have valid lore.kernel.org links in Link: tags
  2. Lore link matches PR commits: Yes — diff content is identical to lore patches; FROMLIST: prefix correctly added; authorship preserved
  3. Upstream patch status:
    • Commits 1-5 (UPSTREAM): ✅ Upstreamed — from Johannes Berg's wireless-next tree (April 2026), already merged to mainline
    • Commits 6-11 (FROMLIST): ⏳ In review — posted to linux-wireless/ath-next on Nov 26, 2026 (today); no acceptance/rejection signals yet (too recent)
  4. PR present in qcom-next/topics: Partial - 6/11 commit(s) only have partial integration evidence
    • Commits 1-5: Yes — all present in qcom-next with exact patch-id matches
    • Commits 6-11: Partial — subject/partial tree evidence found but full verification pending (expected for patches posted today)

Additional context:

This PR combines two related patch series:

  • Foundation (commits 1-5): Johannes Berg's UHR multi-link power management infrastructure, already upstream in wireless-next
  • Driver support (commits 6-11): Hangtian Zhu's ath12k MLO capability fixes, posted today to ath-next mailing list

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.

Verdict: ✅ — click to expand

🔍 Patch Validation

PR: #1552 - wifi: ath12k: fix MLO capability advertisement and peer association (11 commits)
Upstream commits: Multiple lore.kernel.org links (5 UPSTREAM + 6 FROMLIST)
Verdict: ✅ PASS

Commit Message

Check Status Note
Subject matches upstream ✅ All subjects match lore patches with appropriate UPSTREAM:/FROMLIST: prefixes
Body preserves rationale ✅ Commit messages faithfully preserve upstream rationale and technical details
Fixes tag present/correct N/A No Fixes tags in these patches (new feature work)
Authorship preserved ✅ UPSTREAM: Johannes Berg authorship preserved; FROMLIST: Hangtian Zhu authorship correct
Backport note (if applicable) N/A Not backports - UPSTREAM patches are direct cherry-picks, FROMLIST are pending upstream

Diff

All 11 commits validated. Key findings:

Commits 1-5 (UPSTREAM):

File Status Notes
include/linux/ieee80211-eht.h ✅ Exact match - adds UHR ML-PM capability definition
include/net/mac80211.h, net/mac80211/mlme.c ✅ Exact match - tracks AP extended MLD capabilities
net/wireless/nl80211.c ✅ Exact match - ensures UHR ML-PM flag validation
include/net/cfg80211.h, net/wireless/core.c ✅ Exact match - allows device UHR ML-PM advertisement
net/mac80211/mlme.c ✅ Exact match - advertises driver UHR ML-PM support

Commits 6-11 (FROMLIST):

File Status Notes
drivers/net/wireless/ath/ath12k/wmi.c ✅ Exact match - normalizes firmware MLD capability encoding
drivers/net/wireless/ath/ath12k/hw.h, wifi7/hw.c, wmi.c ✅ Exact match - derives max simultaneous links by hardware policy
drivers/net/wireless/ath/ath12k/core.h, mac.c ✅ Exact match - initializes per-wiphy MLO iftype capabilities
drivers/net/wireless/ath/ath12k/wmi.c, wmi.h ✅ Exact match - fills MLO simultaneous-link fields in peer assoc
drivers/net/wireless/ath/ath12k/core.h, debugfs.c ✅ Exact match - adds debugfs controls for MLO and EMLSR

Issues

None. All commits are faithful to their lore sources.

Verdict

Merge as-is. All commits correctly represent their upstream sources with appropriate prefixes and complete attribution.

Final Summary

  1. Lore link present: Yes — all 11 commits have valid lore.kernel.org links in Link: tags
  2. Lore link matches PR commits: Yes — diff content is identical to lore patches; FROMLIST: prefix correctly added; authorship preserved
  3. Upstream patch status:
    • Commits 1-5 (UPSTREAM): ✅ Upstreamed — from Johannes Berg's wireless-next tree (April 2026), already merged to mainline
    • Commits 6-11 (FROMLIST): ⏳ In review — posted to linux-wireless/ath-next on Nov 26, 2026 (today); no acceptance/rejection signals yet (too recent)
  4. PR present in qcom-next/topics:
    • Commits 1-5: Yes — all present in qcom-next with exact patch-id matches
    • Commits 6-11: Partial — subject/partial tree evidence found but full verification pending (expected for patches posted today)

Additional context:

This PR combines two related patch series:

  • Foundation (commits 1-5): Johannes Berg's UHR multi-link power management infrastructure, already upstream in wireless-next
  • Driver support (commits 6-11): Hangtian Zhu's ath12k MLO capability fixes, posted today to ath-next mailing list

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.

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/11 [PATCH 01/11] UPSTREAM: wifi: ieee80211: define UHR ML-PM extended present - exact patch-id match at 32ae6c6 skipped - not checked because qcom-next already contains the change present
2/11 [PATCH 02/11] UPSTREAM: wifi: mac80211: track AP's extended MLD present - all checked added lines are present skipped - not checked because qcom-next already contains the change present
3/11 [PATCH 03/11] UPSTREAM: wifi: cfg80211: ensure UHR ML-PM flag is present - exact patch-id match at 793ccb7 skipped - not checked because qcom-next already contains the change present
4/11 [PATCH 04/11] UPSTREAM: wifi: cfg80211: allow devices to advertise present - exact patch-id match at fb19b4d skipped - not checked because qcom-next already contains the change present
5/11 [PATCH 05/11] UPSTREAM: wifi: mac80211: mlme: advertise driver's present - exact patch-id match at b22aa70 skipped - not checked because qcom-next already contains the change present
6/11 [PATCH 06/11] FROMLIST: wifi: ath12k: encode MLD max simultaneous partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
7/11 [PATCH 07/11] FROMLIST: wifi: ath12k: derive MLD max simultaneous partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
8/11 [PATCH 08/11] FROMLIST: wifi: ath12k: initialize per-wiphy MLO iftype partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
9/11 [PATCH 09/11] FROMLIST: wifi: ath12k: fill MLO simultaneous-link partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
10/11 [PATCH 10/11] FROMLIST: wifi: ath12k: add debugfs control for MLO partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
11/11 [PATCH 11/11] FROMLIST: wifi: ath12k: add debugfs control for EMLSR partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial

Final Status

overall_status: PARTIAL
present_commits: 5/11
partial_commits: 6/11
missing_commits: 0/11
topics_checked_for_commits: 6/11
final_summary: PR present in qcom-next/topics: Partial - 6/11 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1552 — checker-log-analyzer

PR: #1552
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45766435778

Checker Result Summary
Checker Result Summary
checkpatch ❌ 6 commits with long "Tested-on:" lines (75-char limit)
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ All 935 UAPI headers backwards compatible
check-patch-compliance ❌ 1 commit content mismatch with upstream link
tag-check ✅ All commits have valid prefixes (UPSTREAM:/FROMLIST:)
qcom-next-check N/A Not applicable (target: qcom-6.18.y)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1552 - wifi: ath12k: MLO simultaneous links and EMLSR support
Target Branch: qcom-6.18.y
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45766435778

Checker Result Summary
checkpatch ❌ 6 commits with long "Tested-on:" lines (75-char limit)
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ All 935 UAPI headers backwards compatible
check-patch-compliance ❌ 1 commit content mismatch with upstream link
tag-check ✅ All commits have valid prefixes (UPSTREAM:/FROMLIST:)
qcom-next-check N/A Not applicable (target: qcom-6.18.y)

❌ checkpatch

Root cause: Six commits contain "Tested-on:" trailer lines exceeding the 75-character commit body line limit.

Failure details:

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#22: 
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3

Affected commits:

  • 824d874f57bb - "FROMLIST: wifi: ath12k: encode MLD max simultaneous links as N-1"
  • 48be44b4dad9 - "FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy"
  • 06bd69a363cc - "FROMLIST: wifi: ath12k: initialize per-wiphy MLO iftype ext capabilities"
  • 651a8d6dd34e - "FROMLIST: wifi: ath12k: fill MLO simultaneous-link fields in peer assoc WMI"
  • 8f9c54a7570f - "FROMLIST: wifi: ath12k: add debugfs control for MLO simultaneous links"
  • 91428acb2008 - "FROMLIST: wifi: ath12k: add debugfs control for EMLSR support advertisement"

Fix: Wrap the "Tested-on:" line at 75 characters:

git rebase -i 45db20a22e68417457c9e4a4657fe9e894dec550
# For each affected commit, mark as 'edit'
# Then for each:
git commit --amend
# Edit the commit message to wrap the Tested-on line:
Tested-on: WCN7850 hw2.0 PCI
  WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
# Save and continue
git rebase --continue

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 45db20a22e68417457c9e4a4657fe9e894dec550..bc11bbf10357c6b97b13c9e2dde6cbd7325ef48b

❌ check-patch-compliance

Root cause: Commit 48be44b4dad9 ("FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy") has content differences from the upstream patch referenced in its Link: trailer.

Failure details:

Checking commit: FROMLIST: wifi: ath12k: derive MLD max simultaneous links by hw policy
Change is different from the one mentioned in Link

The commit references:

Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/

Fix: Verify the content difference and take appropriate action:

  1. Fetch the upstream patch:

    b4 am --single-message -C -l -3 \
      https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/ \
      -o /tmp/upstream-patch
  2. Compare the diff content:

    # Extract +/- lines from PR commit
    git format-patch -1 48be44b4dad9 --stdout | \
      awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]' > /tmp/pr-diff.txt
    
    # Extract +/- lines from upstream patch
    awk '/^diff/,/^--$/' /tmp/upstream-patch/*.mbx | \
      grep -E '^[+-][^+-]' > /tmp/upstream-diff.txt
    
    # Compare
    diff /tmp/pr-diff.txt /tmp/upstream-diff.txt
  3. Classify the difference:

    • Context-only shift: If only surrounding context lines differ (not actual +/- changes), this is a false positive due to different base commits. No action needed.
    • Legitimate adaptation: If changes were intentionally modified for the target kernel version, document the adaptation in the commit message with an explanation.
    • Missing/extra hunks: If the PR is missing upstream changes or has extra changes, either:
      • Add missing hunks, or
      • Remove extra hunks, or
      • Split extra changes into a separate commit with appropriate attribution
  4. If this is a legitimate backport adaptation:

    git rebase -i 45db20a22e68417457c9e4a4657fe9e894dec550
    # Mark commit 48be44b4dad9 as 'edit'
    git commit --amend
    # Change prefix from FROMLIST: to BACKPORT: and add explanation:
    BACKPORT: wifi: ath12k: derive MLD max simultaneous links by hw policy
    
    [Original commit message body]
    
    [ Upstream commit <sha> ]
    [ Adapted for qcom-6.18.y: <explain the changes> ]
    
    Link: https://lore.kernel.org/linux-wireless/20261126020727.3273337-3-hangtian.zhu@oss.qualcomm.com/
    Signed-off-by: ...

Reproduce locally:

cd /path/to/kernel
bash /path/to/kernel-checkers/check-patch-compliance.sh \
  --kernel-src . \
  --base 45db20a22e68417457c9e4a4657fe9e894dec550 \
  --head bc11bbf10357c6b97b13c9e2dde6cbd7325ef48b

Verdict

2 blockers must be fixed before merge:

  1. checkpatch (6 commits): Wrap "Tested-on:" lines at 75 characters. This is a style issue but checkpatch treats it as a warning that should be addressed.

  2. check-patch-compliance (1 commit): Investigate and resolve the content mismatch in commit 48be44b4dad9. If the patch was intentionally adapted, change the prefix to BACKPORT: and document the changes. If it's a false positive due to context differences, verify with b4 am and document the finding.

Recommendation: Fix both issues, then re-run CI to confirm all checkers pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants