Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH rtw-next v2 0/3] wifi: rtw89: allow AP mode on 6 GHz
@ 2026-12-03 11:11 Josef Schlehofer
  2026-12-03 11:11 ` [PATCH rtw-next v2 1/3] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency Josef Schlehofer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Josef Schlehofer @ 2026-12-03 11:11 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: Zong-Zhe Yang, linux-wireless

rtw89 currently refuses to start an AP on 6 GHz. This series adds
support for it. I tested it with a Cudy BE6500 (RTL8922AU) as the
6 GHz AP on a Turris Omnia running OpenWrt.

Patch 1 advertises the HE 6 GHz antenna pattern consistency bits that
hostapd requires by default. Patch 2 gives P2P interfaces the HE and
EHT capabilities of station and AP. Patch 3 reads the AP's 6 GHz power
type from the beacon's HE Operation element, since mac80211 does not
set a power type for AP interfaces. It accepts LPI and VLP at AP start,
and other power types make the start fail.

Changes in v2:
- Patch 2 is new, suggested by Zong-Zhe.
- Patch 3 reuses reg_6ghz_power, the ap_reg_power field is gone.
- Patch 3 handles the AP inside rtw89_reg_6ghz_recalc(), and
  mac80211.c only calls that function.
- Patch 3 no longer refuses a P2P GO on 6 GHz.

v1: https://lore.kernel.org/linux-wireless/20261129120744.88178-1-pepe.schlehofer@gmail.com/

Testing: RTL8922AU with firmware 0.35.80.3, using OpenWrt main's rtw89
driver (backports from 7.2, plus commit a8cddb62c573 ("wifi: rtw89:
check return values in rtw89_ops_start_ap()"), commit 154d3668b645
("wifi: rtw89: set RA init rate level when the station RSSI is known")
and my two 6 GHz fixes from rtw-next). The series also builds on
rtw-next (arm64, W=1).

With patch 2, a phone that joins a P2P GO started by wpa_supplicant
gets HE on 5 GHz and on 6 GHz. Without it the GO sent to the phone at
HT rates on 5 GHz and at 54 Mbit/s on 6 GHz. The P2P client side was
not tested.

With the reworked patch 3 I reran these AP tests: start with LPI and
VLP, a refused standard power beacon, power type changes and a channel
switch on a running 6 GHz AP, and the failed-start unwind and the
blocked-VLP fallback with a temporary patch. That run still had the
P2P check. After dropping it I reran the starts and the power type
changes. The reset when an AP leaves 6 GHz is still compile-tested
only.

The two questions from the v1 cover letter are still open: the
fallback when policy blocks VLP, and whether the Rx bit could stay set
with Tx path diversity.

Josef Schlehofer (3):
  wifi: rtw89: advertise HE 6 GHz antenna pattern consistency
  wifi: rtw89: share HE and EHT capabilities with P2P interfaces
  wifi: rtw89: allow AP mode on 6 GHz

 drivers/net/wireless/realtek/rtw89/core.c     |  12 ++-
 drivers/net/wireless/realtek/rtw89/mac80211.c |  32 +++---
 drivers/net/wireless/realtek/rtw89/regd.c     | 101 +++++++++++++++++-
 3 files changed, 127 insertions(+), 18 deletions(-)

-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-03 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 11:11 [PATCH rtw-next v2 0/3] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer
2026-12-03 11:11 ` [PATCH rtw-next v2 1/3] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency Josef Schlehofer
2026-12-03 11:11 ` [PATCH rtw-next v2 2/3] wifi: rtw89: share HE and EHT capabilities with P2P interfaces Josef Schlehofer
2026-12-03 11:11 ` [PATCH rtw-next v2 3/3] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox