Skip to content

wifi: mt76: add mt7925 NAN support

Sean Wang linux-mediatek linux-wireless 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. 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 filesSizeRepliesApplied
1/9wifi: mt76: mt792x: advertise mgmt frame registrationdrivers/net/wireless/mediatek/mt76/mt792x_core.c+1 -00 replies
2/9wifi: mt76: mt7925: guard BSS capability lookupsdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+20 -60 replies
3/9wifi: mt76: connac: add NAN connection typedrivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h+18 -00 replies
4/9wifi: mt76: mt7925: add NAN MCU helpersdrivers/net/wireless/mediatek/mt76/mt7925/Makefile drivers/net/wireless/mediatek/mt76/mt7925/nan.c drivers/net/wireless/mediatek/mt76/mt7925/nan.h +3 more+1430 -10 replies
5/9wifi: mt76: mt7925: add NAN MCU handlingdrivers/net/wireless/mediatek/mt76/mt7925/mcu.c+84 -150 replies
6/9wifi: mt76: add init_wiphy callbackdrivers/net/wireless/mediatek/mt76/mac80211.c drivers/net/wireless/mediatek/mt76/mt76.h+10 -00 replies
7/9wifi: mt76: mt7925: wire up NAN operationsdrivers/net/wireless/mediatek/mt76/mt7925/init.c drivers/net/wireless/mediatek/mt76/mt7925/main.c drivers/net/wireless/mediatek/mt76/mt7925/nan.c +2 more+430 -440 replies
8/9wifi: mt76: mt792x: build iface combinations dynamicallydrivers/net/wireless/mediatek/mt76/mt792x.h drivers/net/wireless/mediatek/mt76/mt792x_core.c+30 -80 replies
9/9wifi: mt76: mt792x: advertise NAN data supportdrivers/net/wireless/mediatek/mt76/mt792x_core.c+92 -40 replies

Reviews trailers per patch

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

Read the v2 thread

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