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 0/2] wifi: rtw89: allow AP mode on 6 GHz
Date: Sun, 29 Nov 2026 13:07:42 +0100	[thread overview]
Message-ID: <20261129120744.88178-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 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. If a later beacon advertises an
unsupported power type, the driver falls back to the default power
type.

There are two points I'd particularly like feedback on:

- If policy blocks VLP and a running AP changes its beacon to VLP,
  patch 2 falls back to the default power type, which also selects
  the VLP table. Should this case be handled differently?
- Patch 1 omits both antenna pattern consistency bits when Tx path
  diversity is enabled. Does Tx path diversity actually affect the Rx
  antenna pattern? If not, could the Rx consistency bit still be set?

Two related issues are outside this series:

- From reading the code, stopping the AP while a 6 GHz station is
  also active leaves the station on the default power type until the
  next recalculation. Two stations behave the same today. I plan to
  address it separately.
- I found no check that stops a P2P GO from moving to 6 GHz with a
  channel switch.

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()") and my two fixes:
"regd: avoid freeing devm-allocated 6 GHz band" and "fix 6 GHz peer
rate lookup"). Both patches also build on plain rtw-next, without my
two fixes (arm64, W=1). A phone was used as the client. A second
adapter in monitor mode saw the beacons 9 dB weaker with VLP than with
LPI, as the ETSI limits in the firmware tables predict.

The failed-start unwind and blocked-VLP fallback paths were tested
with a temporary patch that forced the corresponding failures. The
reset when an AP leaves 6 GHz was compile-tested only: hostapd refused
the 6-to-5 GHz channel switch, so I could not test that path at runtime.

Josef Schlehofer (2):
  wifi: rtw89: advertise HE 6 GHz antenna pattern consistency
  wifi: rtw89: allow AP mode on 6 GHz

 drivers/net/wireless/realtek/rtw89/core.c     |   3 +
 drivers/net/wireless/realtek/rtw89/core.h     |   1 +
 drivers/net/wireless/realtek/rtw89/mac80211.c | 119 ++++++++++++++++--
 drivers/net/wireless/realtek/rtw89/regd.c     |  10 +-
 4 files changed, 123 insertions(+), 10 deletions(-)

-- 
2.54.0 (Apple Git-157)


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 12:07 Josef Schlehofer [this message]
2026-11-29 12:07 ` [PATCH rtw-next 1/2] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency Josef Schlehofer
2026-11-29 12:07 ` [PATCH rtw-next 2/2] 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=20261129120744.88178-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