Skip to content

wifi: mt7601u: add AP and Wi-Fi Direct support

John Robin linux-arm-kernel linux-mediatek linux-wireless lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: mt7601u: fix out-of-bounds access in rate indexdrivers/net/wireless/mediatek/mt7601u/mac.c+20 -120 replies
2/4wifi: mt7601u: enable AP and Wi-Fi Direct interface modesdrivers/net/wireless/mediatek/mt7601u/init.c+29 -20 replies
3/4wifi: mt7601u: add AP operations and beacon handlingdrivers/net/wireless/mediatek/mt7601u/mac.c drivers/net/wireless/mediatek/mt7601u/mac.h drivers/net/wireless/mediatek/mt7601u/main.c +1 more+110 -110 replies
4/4wifi: mt7601u: optimize management frame routing and queuesdrivers/net/wireless/mediatek/mt7601u/tx.c+16 -30 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/4] wifi: mt7601u: add AP and Wi-Fi Direct support

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(-)
Signature · 1 line
2.56.0