[PATCH v2 0/4] wifi: mt7601u: add AP and Wi-Fi Direct support
From: John Robin
Date: Sun Nov 08 2026 - 02:19:19 EST
v2: Split the single large commit into a 4-patch series as requested.
This series enables Access Point (AP) and Wi-Fi Direct (P2P_GO/P2P_CLIENT)
interface modes on the MT7601U device, allowing concurrent Station and AP
operation.
The changes are split into the following patches:
- Patch 1 fixes a potential out-of-bounds access in the rate index and
safely falls back to CCK rates.
- Patch 2 registers the AP, P2P, and ADHOC modes, defines the interface
combinations, and sets NEEDS_UNIQUE_STA_ADDR.
- Patch 3 implements start_ap()/stop_ap() and adds beacon frame handling
along with appropriate SYNC modes.
- Patch 4 optimizes queue management by routing management and injected
frames to the Voice (VO) queue to bypass firmware suspension.
All implemented modes were verified to be working. Tested AP mode and
simultaneous STA+AP with iperf3 to verify stability.
Sorry for the delay in getting back to this, and thanks for the review.
Here is the split series as requested.
John Robin (4):
wifi: mt7601u: fix out-of-bounds access in rate index
wifi: mt7601u: enable AP and Wi-Fi Direct interface modes
wifi: mt7601u: add AP operations and beacon handling
wifi: mt7601u: optimize management frame routing and queues
drivers/net/wireless/mediatek/mt7601u/init.c | 31 ++++++-
drivers/net/wireless/mediatek/mt7601u/mac.c | 91 +++++++++++++++----
drivers/net/wireless/mediatek/mt7601u/mac.h | 3 +-
drivers/net/wireless/mediatek/mt7601u/main.c | 56 +++++++++++-
.../net/wireless/mediatek/mt7601u/mt7601u.h | 3 +-
drivers/net/wireless/mediatek/mt7601u/tx.c | 19 +++-
6 files changed, 175 insertions(+), 28 deletions(-)
--
2.56.0