Skip to content

wifi: mt76: mt7925: add MLO hybrid and EMLSR support

Emery Hsin linux-mediatek linux-wireless stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28wifi: mt76: mt7925: fix the basic rate sent in the STA phy TLVdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+3 -10 replies
2/28wifi: mt76: mt7925: fix MLO sub-link memory leak on disconnectdrivers/net/wireless/mediatek/mt76/mt7925/main.c+8 -40 replies
3/28wifi: mt76: mt792x: turn chip_cap bits into an enum of bit positionsdrivers/net/wireless/mediatek/mt76/mt7921/main.c drivers/net/wireless/mediatek/mt76/mt7921/mcu.c drivers/net/wireless/mediatek/mt76/mt7921/pci.c +8 more+30 -240 replies
4/28wifi: mt76: mt792x: use named constants for the DBDC banddrivers/net/wireless/mediatek/mt76/mt7921/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mac.c drivers/net/wireless/mediatek/mt76/mt7925/main.c +2 more+23 -110 replies
5/28wifi: mt76: use named constants for the HT secondary channel offsetdrivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c drivers/net/wireless/mediatek/mt76/mt7921/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c+16 -150 replies
6/28wifi: mt76: mt7925: factor out mt7925_mac_link_sta_free_wcid()drivers/net/wireless/mediatek/mt76/mt7925/main.c+15 -160 replies
7/28wifi: mt76: mt792x: add a gated mt792x_mcu_set_dev_active() helperdrivers/net/wireless/mediatek/mt76/mt792x.h drivers/net/wireless/mediatek/mt76/mt792x_core.c+25 -00 replies
8/28wifi: mt76: mt792x: route DEV (de)activation through mt792x_mcu_set_dev_active()drivers/net/wireless/mediatek/mt76/mt7921/mac.c drivers/net/wireless/mediatek/mt76/mt7921/main.c drivers/net/wireless/mediatek/mt76/mt7925/mac.c +2 more+17 -180 replies
9/28wifi: mt76: mt7925: deactivate the DEV and BSS on disconnectdrivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.h+21 -620 replies
10/28wifi: mt76: mt7925: reactivate the DEV before (re)connect, scan and off-channeldrivers/net/wireless/mediatek/mt76/mt7925/main.c+30 -120 replies
11/28wifi: mt76: mt7925: parse the FW hybrid-MLO third-link band limitdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c drivers/net/wireless/mediatek/mt76/mt792x.h+12 -10 replies
12/28wifi: mt76: mt7925: gate EMLSR by AP vendor OUI allowlistdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+75 -10 replies
13/28wifi: mt76: mt7925: support multi-link hybrid/EMLSR remain-on-channeldrivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.h +2 more+174 -560 replies
14/28wifi: mt76: mt7925: describe the whole MLD in the STA/BSS MLD TLVsdrivers/net/wireless/mediatek/mt76/mt7925/mac.c drivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +2 more+69 -780 replies
15/28wifi: mt76: mt7925: assign a per-MLD firmware link indexdrivers/net/wireless/mediatek/mt76/mt7925/main.c+9 -40 replies
16/28wifi: mt76: mt7925: share the primary OMAC across MLO linksdrivers/net/wireless/mediatek/mt76/mt7925/main.c+11 -50 replies
17/28wifi: mt76: mt7925: carry the STA decap offload to later linksdrivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt792x.h+11 -20 replies
18/28wifi: mt76: mt7925: split link sta add into alloc and commit phasesdrivers/net/wireless/mediatek/mt76/mt7925/main.c+63 -690 replies
19/28wifi: mt76: mt7925: publish every link before sending any STA_RECdrivers/net/wireless/mediatek/mt76/mt7925/main.c+56 -40 replies
20/28wifi: mt76: mt7925: add mt7925_mcu_add_bss_sec() helperdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.h+24 -00 replies
21/28wifi: mt76: mt7925: only refresh the SEC tag when setting the first keydrivers/net/wireless/mediatek/mt76/mt7925/main.c+2 -40 replies
22/28wifi: mt76: mt7925: add mt7925_set_links_key_iter() helperdrivers/net/wireless/mediatek/mt76/mt7925/main.c+29 -00 replies
23/28wifi: mt76: mt7925: bring up all MLO links on authorizationdrivers/net/wireless/mediatek/mt76/mt7925/main.c+297 -930 replies
24/28wifi: mt76: mt7925: skip re-adding the primary MLD BSS_INFO in chanctx opsdrivers/net/wireless/mediatek/mt76/mt7925/main.c+2 -150 replies
25/28wifi: mt76: mt7925: apply FW-reported MLO link statedrivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h drivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +2 more+121 -00 replies
26/28wifi: mt76: mt7925: remap hybrid-MLO TX to the primary link OMACdrivers/net/wireless/mediatek/mt76/mt7925/mac.c drivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +1 more+37 -20 replies
27/28wifi: mt76: mt7925: clear the MLD BSS tag on deactivatedrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+9 -50 replies
28/28wifi: mt76: mt7925: add hm_alg_ctrl debugfs to override the MLO link plandrivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +1 more+88 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/28] wifi: mt76: mt7925: add MLO hybrid and EMLSR support

This series adds station-mode multi-link operation to the mt7925 driver:
three-link hybrid MLO (one link per band) and EMLSR for APs on a vendor OUI allowlist. Hybrid MLO and EMLSR are gated by the chip capabilities the firmware reports.

Patches 1-8 fix the basic rate sent in the STA phy TLV and a sub-link memory leak on disconnect, both with Fixes tags, then prepare the series with no functional change: named constants for chip_cap, the DBDC band and the HT secondary channel offset, a link STA wcid unwind helper, and a gated mt792x_mcu_set_dev_active() also used by mt7921.

Patches 9-10 deactivate the DEV and BSS on disconnect and reactivate the DEV before a reconnect, scan or off-channel operation. This covers the MLO to legacy switch fixed by commit 8f9e5807671e ("wifi: mt76: mt7925:
restore the legacy BSS after MLO teardown") and replaces its BSS re-add.

Patches 11-19 add the firmware interfaces the link setup needs (the third-link band limit, the EMLSR OUI allowlist and a multi-link remain-on-channel) and keep the MLD consistent as links are added. Patch 14 replaces the pending link parameter of commit dd3f17ef69ed ("wifi: mt76: mt7925: keep MLD membership consistent during link add").

Patches 20-28 bring up all links at authorization with one MLO ROC, install the existing keys on the added links, apply the link state the firmware reports, remap hybrid MLO TX to the primary link OMAC, and add a hm_alg_ctrl debugfs file to override the firmware link plan.

The series is based on mt76 commit 8739e5b44b23 ("wifi: mt76: connac:
bound the scan IEs in mt76_connac_mcu_hw_scan()").

Emery Hsin (28):
wifi: mt76: mt7925: fix the basic rate sent in the STA phy TLV
wifi: mt76: mt7925: fix MLO sub-link memory leak on disconnect
wifi: mt76: mt792x: turn chip_cap bits into an enum of bit positions
wifi: mt76: mt792x: use named constants for the DBDC band
wifi: mt76: use named constants for the HT secondary channel offset
wifi: mt76: mt7925: factor out mt7925_mac_link_sta_free_wcid()
wifi: mt76: mt792x: add a gated mt792x_mcu_set_dev_active() helper
wifi: mt76: mt792x: route DEV (de)activation through

    mt792x_mcu_set_dev_active()

wifi: mt76: mt7925: deactivate the DEV and BSS on disconnect
wifi: mt76: mt7925: reactivate the DEV before (re)connect, scan and
off-channel
wifi: mt76: mt7925: parse the FW hybrid-MLO third-link band limit
wifi: mt76: mt7925: gate EMLSR by AP vendor OUI allowlist
wifi: mt76: mt7925: support multi-link hybrid/EMLSR remain-on-channel
wifi: mt76: mt7925: describe the whole MLD in the STA/BSS MLD TLVs
wifi: mt76: mt7925: assign a per-MLD firmware link index
wifi: mt76: mt7925: share the primary OMAC across MLO links
wifi: mt76: mt7925: carry the STA decap offload to later links
wifi: mt76: mt7925: split link sta add into alloc and commit phases
wifi: mt76: mt7925: publish every link before sending any STA_REC
wifi: mt76: mt7925: add mt7925_mcu_add_bss_sec() helper
wifi: mt76: mt7925: only refresh the SEC tag when setting the first
key
wifi: mt76: mt7925: add mt7925_set_links_key_iter() helper
wifi: mt76: mt7925: bring up all MLO links on authorization
wifi: mt76: mt7925: skip re-adding the primary MLD BSS_INFO in chanctx
ops
wifi: mt76: mt7925: apply FW-reported MLO link state
wifi: mt76: mt7925: remap hybrid-MLO TX to the primary link OMAC
wifi: mt76: mt7925: clear the MLD BSS tag on deactivate
wifi: mt76: mt7925: add hm_alg_ctrl debugfs to override the MLO link
plan

 .../wireless/mediatek/mt76/mt76_connac_mcu.c  |   4 +-
 .../wireless/mediatek/mt76/mt76_connac_mcu.h  |   2 +
 .../net/wireless/mediatek/mt76/mt7921/mac.c   |   7 +-
 .../net/wireless/mediatek/mt76/mt7921/main.c  |   9 +-
 .../net/wireless/mediatek/mt76/mt7921/mcu.c   |  14 +-
 .../net/wireless/mediatek/mt76/mt7921/pci.c   |   2 +-
 .../net/wireless/mediatek/mt76/mt7921/regd.c  |   4 +-
 .../net/wireless/mediatek/mt76/mt7921/regd.h  |   2 +-
 .../wireless/mediatek/mt76/mt7925/debugfs.c   |  41 +
 .../net/wireless/mediatek/mt76/mt7925/mac.c   |  23 +-
 .../net/wireless/mediatek/mt76/mt7925/main.c  | 843 +++++++++++++-----
 .../net/wireless/mediatek/mt76/mt7925/mcu.c   | 628 +++++++++----
 .../net/wireless/mediatek/mt76/mt7925/mcu.h   |  26 +-
 .../wireless/mediatek/mt76/mt7925/mt7925.h    |  33 +-
 .../net/wireless/mediatek/mt76/mt7925/pci.c   |   4 +-
 .../net/wireless/mediatek/mt76/mt7925/regd.c  |   4 +-
 .../net/wireless/mediatek/mt76/mt7925/regd.h  |   2 +-
 drivers/net/wireless/mediatek/mt76/mt792x.h   |  56 +-
 .../net/wireless/mediatek/mt76/mt792x_core.c  |  23 +-
 19 files changed, 1251 insertions(+), 476 deletions(-)
Signature · 1 line
2.45.2