wifi: mt76: add mt7925 NAN support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v17 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Rebased and reworked the 7-patch v1 series into 9 focused patches.
- v1 patch 2 and 3 are folded into one BSS capability guard patch.
- v1 patch 7 is split into a framework-only interface combination patch and a final NAN/NAN_DATA advertisement patch.
- v1 patch 5 is split into NAN MCU helpers and mt7925 MCU response, event and NAN-specific BSS/STA TLV handling.
- v1 patch 6 is split so NAN PHY capability setup uses a generic init_wiphy callback before mac80211 NAN ops are wired.
- Order init_wiphy before the mt7925 NAN ops patch so each patch builds independently.
- Define MT792x_FW_CAP_NAN in the patch that first uses it.
- Move common NAN MCU command/event IDs to the connac patch and handle NAN_DATA as a NAN connection type.
- Add NAN_DATA interface support, 2.4/5 GHz NAN bands and secure NAN advertisement.
- Add NMI address programming, DW notifications, local availability updates, peer schedule updates and NDI STA mapping.
- Add cleanup and rollback for NAN peer indexes, NDP contexts and MCU failures.
- Drop temporary NAN channel debug logging and fix checkpatch issues.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | wifi: mt76: mt792x: advertise mgmt frame registrationdrivers/ | +1 | 0 replies | |
| 2/9 | wifi: mt76: mt7925: guard BSS capability lookupsdrivers/ | +20 | 0 replies | |
| 3/9 | wifi: mt76: connac: add NAN connection typedrivers/ drivers/ | +18 | 0 replies | |
| 4/9 | wifi: mt76: mt7925: add NAN MCU helpersdrivers/ drivers/ drivers/ +3 more | +1430 | 0 replies | |
| 5/9 | wifi: mt76: mt7925: add NAN MCU handlingdrivers/ | +84 | 0 replies | |
| 6/9 | wifi: mt76: add init_wiphy callbackdrivers/ drivers/ | +10 | 0 replies | |
| 7/9 | wifi: mt76: mt7925: wire up NAN operationsdrivers/ drivers/ drivers/ +2 more | +430 | 0 replies | |
| 8/9 | wifi: mt76: mt792x: build iface combinations dynamicallydrivers/ drivers/ | +30 | 0 replies | |
| 9/9 | wifi: mt76: mt792x: advertise NAN data supportdrivers/ | +92 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/9] wifi: mt76: add mt7925 NAN support
Add NAN support for mt7925. The series first advertises userspace management-frame registration and hardens BSS capability lookups used by partially configured BSS state.
The rest of the series adds the connac NAN connection type, mt7925 NAN MCU helpers and event handling, a generic init_wiphy callback, mac80211 NAN operations, firmware-gated interface combinations and NAN data advertisement.
Changes since v1
- Rebased and reworked the 7-patch v1 series into 9 focused patches.
- v1 patch 2 and 3 are folded into one BSS capability guard patch.
- v1 patch 7 is split into a framework-only interface combination patch and a final NAN/NAN_DATA advertisement patch.
- v1 patch 5 is split into NAN MCU helpers and mt7925 MCU response, event and NAN-specific BSS/STA TLV handling.
- v1 patch 6 is split so NAN PHY capability setup uses a generic init_wiphy callback before mac80211 NAN ops are wired.
- Order init_wiphy before the mt7925 NAN ops patch so each patch builds independently.
- Define MT792x_FW_CAP_NAN in the patch that first uses it.
- Move common NAN MCU command/event IDs to the connac patch and handle NAN_DATA as a NAN connection type.
- Add NAN_DATA interface support, 2.4/5 GHz NAN bands and secure NAN advertisement.
- Add NMI address programming, DW notifications, local availability updates, peer schedule updates and NDI STA mapping.
- Add cleanup and rollback for NAN peer indexes, NDP contexts and MCU failures.
- Drop temporary NAN channel debug logging and fix checkpatch issues.
Sean Wang (9):
wifi: mt76: mt792x: advertise mgmt frame registration
wifi: mt76: mt7925: guard BSS capability lookups
wifi: mt76: connac: add NAN connection type
wifi: mt76: mt7925: add NAN MCU helpers
wifi: mt76: mt7925: add NAN MCU handling
wifi: mt76: add init_wiphy callback
wifi: mt76: mt7925: wire up NAN operations
wifi: mt76: mt792x: build iface combinations dynamically
wifi: mt76: mt792x: advertise NAN data support
drivers/net/wireless/mediatek/mt76/mac80211.c | 7 + drivers/net/wireless/mediatek/mt76/mt76.h | 3 + .../wireless/mediatek/mt76/mt76_connac_mcu.c | 14 + .../wireless/mediatek/mt76/mt76_connac_mcu.h | 4 + .../wireless/mediatek/mt76/mt7925/Makefile | 2 +- .../net/wireless/mediatek/mt76/mt7925/init.c | 29 + .../net/wireless/mediatek/mt76/mt7925/main.c | 201 ++- .../net/wireless/mediatek/mt76/mt7925/mcu.c | 125 +- .../net/wireless/mediatek/mt76/mt7925/nan.c | 1091 +++++++++++++++++ .../net/wireless/mediatek/mt76/mt7925/nan.h | 440 +++++++ .../net/wireless/mediatek/mt76/mt7925/regd.c | 30 + .../net/wireless/mediatek/mt76/mt7925/regd.h | 3 + drivers/net/wireless/mediatek/mt76/mt792x.h | 43 + .../net/wireless/mediatek/mt76/mt792x_core.c | 125 +- 14 files changed, 2077 insertions(+), 40 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7925/nan.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7925/nan.h
Signature · 1 line
2.43.0