[PATCH v2 0/9] wifi: mt76: mt7925: make P2P operation robust off-channel
James-LY Huang
james-ly.huang at mediatek.com
Fri Nov 6 00:29:55 PST 2026
From: mtk18285 <james-ly.huang at mediatek.com>
This series fixes a number of P2P (WiFi Direct) issues seen on mt7925
when a GO or client has to operate or answer on a channel other than
its own operating channel, or while the firmware is busy granting one.
Off-channel traffic breaks in both directions today: frames received
while P2P discovery walks the social channels can carry IEs for
another band than the one they were received on, GO probe responses
and off-channel management TX outlive the ROC window they were
admitted under, and a GO BSS gets programmed without the channel
being requested first, which the firmware rejects.
The series starts a dedicated p2p.c/p2p.h module for the P2P-only
logic, and moves through:
- RX side: drop P2P management frames received on a foreign
channel, drop stale GO probe responses after the BSS went away
- TX side: bound GO probe response and off-channel management TX
lifetime to the ROC window, send the common scan IEs and size
the scan request for its IEs
- ROC: harden the channel-grant handshake, describe the real
chandef in the requests made to the firmware
- GO bring-up: request the channel before programming a BSS,
inject a deauth when the firmware reports an aging-timeout SAP
event
- give every P2P interface a BMC wcid of its own
The series has been verified to build against 7.3.0-rc5 as an
out-of-tree module for all PCI/USB chips (mt7603e, mt7615e, mt76x0e/u,
mt76x2e/u, mt7915e, mt7921e/u, mt7925e/u, mt7996e) and passes
scripts/checkpatch.pl with no errors or warnings.
Changes in v2:
- patch 7/9 (inject the deauth): drop a redundant __packed from
the synthesized deauth frame, which -Wpacked-not-aligned flags
in builds that do not suppress the warning; no functional
change, the struct layout is identical.
Jacobs Wu (1):
wifi: mt76: mt7925: send the common scan IEs and size the request
james-ly huang (8):
wifi: mt76: mt7925: drop P2P mgmt frames received on foreign channel
wifi: mt76: mt7925: bound P2P off-channel mgmt TX lifetime
wifi: mt76: mt7925: give every P2P interface a BMC wcid of its own
wifi: mt76: mt7925: harden the ROC channel-grant handshake
wifi: mt76: mt7925: describe the real chandef in ROC requests
wifi: mt76: mt7925: request the channel before programming a GO BSS
wifi: mt76: mt7925: inject the deauth for an aging-timeout SAP event
wifi: mt76: mt7925: track BSS absence and drop stale GO probe
responses
drivers/net/wireless/mediatek/mt76/mt76.h | 1 +
.../wireless/mediatek/mt76/mt76_connac_mcu.c | 3 +-
.../wireless/mediatek/mt76/mt76_connac_mcu.h | 2 +
.../wireless/mediatek/mt76/mt7925/Makefile | 2 +-
.../net/wireless/mediatek/mt76/mt7925/init.c | 5 +
.../net/wireless/mediatek/mt76/mt7925/mac.c | 12 +
.../net/wireless/mediatek/mt76/mt7925/main.c | 189 ++++-
.../net/wireless/mediatek/mt76/mt7925/mcu.c | 220 ++++--
.../net/wireless/mediatek/mt76/mt7925/mt7925.h | 29 +-
.../net/wireless/mediatek/mt76/mt7925/p2p.c | 702 ++++++++++++++++++
.../net/wireless/mediatek/mt76/mt7925/p2p.h | 93 +++
drivers/net/wireless/mediatek/mt76/mt792x.h | 28 +
drivers/net/wireless/mediatek/mt76/mt792x_core.c | 27 +
13 files changed, 1256 insertions(+), 57 deletions(-)
create mode 100644 drivers/net/wireless/mediatek/mt76/mt7925/p2p.c
create mode 100644 drivers/net/wireless/mediatek/mt76/mt7925/p2p.h
--
2.45.2
More information about the Linux-mediatek
mailing list