Linux wireless drivers development
 help / color / mirror / Atom feed
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: Zong-Zhe Yang <kevin_yang@realtek.com>, linux-wireless@vger.kernel.org
Subject: [PATCH rtw-next v2 0/3] wifi: rtw89: allow AP mode on 6 GHz
Date: Thu,  3 Dec 2026 12:11:20 +0100	[thread overview]
Message-ID: <20261203111123.62650-1-pepe.schlehofer@gmail.com> (raw)

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)


             reply	other threads:[~2026-12-03 11:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 11:11 Josef Schlehofer [this message]
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

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=20261203111123.62650-1-pepe.schlehofer@gmail.com \
    --to=pepe.schlehofer@gmail.com \
    --cc=kevin_yang@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.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