Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sean Wang <sean.wang@kernel.org>
To: Felix Fietkau <nbd@nbd.name>, Lorenzo Bianconi <lorenzo@kernel.org>
Cc: chengwei.yu@mediatek.com, yu-ching.liu@mediatek.com,
	jenhao.yang@mediatek.com, posh.sun@mediatek.com,
	linux-wireless@vger.kernel.org,
	linux-mediatek@lists.infradead.org,
	Sean Wang <sean.wang@kernel.org>
Subject: [PATCH v2 0/9] wifi: mt76: add mt7925 NAN support
Date: Wed, 24 Jun 2026 19:18:25 -0500	[thread overview]
Message-ID: <20260625001834.475094-1-sean.wang@kernel.org> (raw)

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

-- 
2.43.0


             reply	other threads:[~2026-06-25  0:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25  0:18 Sean Wang [this message]
2026-06-25  0:18 ` [PATCH v2 1/9] wifi: mt76: mt792x: advertise mgmt frame registration Sean Wang
2026-06-25  0:18 ` [PATCH v2 2/9] wifi: mt76: mt7925: guard BSS capability lookups Sean Wang
2026-06-25  0:18 ` [PATCH v2 3/9] wifi: mt76: connac: add NAN connection type Sean Wang
2026-06-25  0:18 ` [PATCH v2 4/9] wifi: mt76: mt7925: add NAN MCU helpers Sean Wang
2026-06-25  0:18 ` [PATCH v2 5/9] wifi: mt76: mt7925: add NAN MCU handling Sean Wang
2026-06-25  0:18 ` [PATCH v2 6/9] wifi: mt76: add init_wiphy callback Sean Wang
2026-06-25  0:18 ` [PATCH v2 7/9] wifi: mt76: mt7925: wire up NAN operations Sean Wang
2026-06-25  0:18 ` [PATCH v2 8/9] wifi: mt76: mt792x: build iface combinations dynamically Sean Wang
2026-06-25  0:18 ` [PATCH v2 9/9] wifi: mt76: mt792x: advertise NAN data support Sean Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260625001834.475094-1-sean.wang@kernel.org \
    --to=sean.wang@kernel.org \
    --cc=chengwei.yu@mediatek.com \
    --cc=jenhao.yang@mediatek.com \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=posh.sun@mediatek.com \
    --cc=yu-ching.liu@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox