Skip to contentSkip to conversation

wifi: rtw89: allow AP mode on 6 GHz

PATCH In review Josef Schlehofer 3 participants 7 messages Nov 29 – Dec 2 Realtek wireless driver (rtw89)

lore
Share & tools
lore
#0 lore raw

cover wifi: rtw89: allow AP mode on 6 GHz

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(-)
Signature · 1 line
2.54.0 (Apple Git-157)
#1 lore raw

PATCH 1/2 wifi: rtw89: advertise HE 6 GHz antenna pattern consistency

hostapd by default requires the Rx and Tx antenna pattern consistency bits in the HE 6 GHz capabilities and refuses to start an AP on 6 GHz without them. rtw89 does not set them.

The bits tell a peer that the antenna pattern does not change during the association. Set them for station and AP, as mt7915 and mt7996 do on 6 GHz, but not when antenna diversity or Tx path diversity can switch antennas at runtime.

---
 drivers/net/wireless/realtek/rtw89/core.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/realtek/rtw89/core.c +3 -0
index 3a80ac8dbbd..d240d0182fa 100644
@@ -6342,6 +6342,9 @@ static void rtw89_init_he_cap(struct rtw89_dev *rtwdev,
 					IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP) |
 		       le16_encode_bits(chip->max_vht_mpdu_cap,
 					IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN);
+		if (!hal->ant_diversity && !hal->tx_path_diversity)
+			capa |= cpu_to_le16(IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS |
+					    IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS);
 		iftype_data->he_6ghz_capa.capa = capa;
 	}
 }
Signature · 1 line
2.54.0 (Apple Git-157)
#2 lore raw

PATCH 2/2 wifi: rtw89: allow AP mode on 6 GHz

In reply to Josef Schlehofer

Since commit f6baa1d3d570 ("wifi: rtw89: process regulatory for 6 GHz power type") rtw89 refuses to start an AP on 6 GHz. The 6 GHz power type follows the AP that a station connects to, and nothing selects one for an AP of its own.

mac80211 sets no power type for an AP. Read it from the HE operation element of the beacon instead, as cfg80211 does for its regulatory checks. Allow LPI and VLP when the AP starts, and refuse other power types. Recalculate the 6 GHz power type when the AP starts, stops, changes its beacon or leaves 6 GHz, and undo it when starting the AP fails. If a later beacon has a power type that cannot be used, fall back to the default power type.

Keep refusing a P2P GO on 6 GHz. rtw89 has no HE capabilities for P2P interfaces, and 6 GHz needs HE.

---
 drivers/net/wireless/realtek/rtw89/core.h     |   1 +
 drivers/net/wireless/realtek/rtw89/mac80211.c | 119 ++++++++++++++++--
 drivers/net/wireless/realtek/rtw89/regd.c     |  10 +-
 3 files changed, 120 insertions(+), 10 deletions(-)
drivers/net/wireless/realtek/rtw89/core.h +1 -0
index 8425bd0b3b8..a46ba36abd9 100644
@@ -4872,6 +4872,7 @@ struct rtw89_vif_link {
 	enum rtw89_chanctx_idx chanctx_idx;
 	enum rtw89_reg_6ghz_power reg_6ghz_power;
 	struct rtw89_reg_6ghz_tpe reg_6ghz_tpe;
+	enum ieee80211_ap_reg_power ap_reg_power;
 
 	u8 mac_id;
 	u8 port;
drivers/net/wireless/realtek/rtw89/mac80211.c +110 -9

191 lines not on this page · raw message

drivers/net/wireless/realtek/rtw89/regd.c +9 -1
index 017e6a2b4b0..a88e14a031c 100644
@@ -1392,9 +1392,11 @@ static int rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev,
 				       unsigned int *changed)
 {
 	struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory;
+	struct ieee80211_vif *vif = rtwvif_link_to_vif(rtwvif_link);
 	const struct rtw89_regd *regd = regulatory->regd;
 	bool blocked[NUM_OF_RTW89_REG_6GHZ_POWER] = {};
 	u8 index = rtw89_regd_get_index(rtwdev, regd);
+	enum ieee80211_ap_reg_power power_type;
 	struct ieee80211_bss_conf *bss_conf;
 	bool dflt = false;
 
@@ -1407,7 +1409,13 @@ static int rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev,
 	bss_conf = rtw89_vif_rcu_dereference_link(rtwvif_link, true);
 
 	if (active) {
-		switch (bss_conf->power_type) {
+		/* an AP uses the power type that rtw89 read from its beacon */
+		if (vif->type == NL80211_IFTYPE_AP)
+			power_type = rtwvif_link->ap_reg_power;
+		else
+			power_type = bss_conf->power_type;
+
+		switch (power_type) {
 		case IEEE80211_REG_VLP_AP:
 			rtwvif_link->reg_6ghz_power = RTW89_REG_6GHZ_POWER_VLP;
 			break;
Signature · 1 line
2.54.0 (Apple Git-157)
#3 lore raw
Quoted 30 lines · Josef Schlehofer

Since commit f6baa1d3d570 ("wifi: rtw89: process regulatory for 6 GHz power type") rtw89 refuses to start an AP on 6 GHz. The 6 GHz power type follows the AP that a station connects to, and nothing selects one for an AP of its own.

mac80211 sets no power type for an AP. Read it from the HE operation element of the beacon instead, as cfg80211 does for its regulatory checks. Allow LPI and VLP when the AP starts, and refuse other power types. Recalculate the 6 GHz power type when the AP starts, stops, changes its beacon or leaves 6 GHz, and undo it when starting the AP fails. If a later beacon has a power type that cannot be used, fall back to the default power type.

Keep refusing a P2P GO on 6 GHz. rtw89 has no HE capabilities for P2P interfaces, and 6 GHz needs HE.

---
 drivers/net/wireless/realtek/rtw89/core.h     |   1 +
 drivers/net/wireless/realtek/rtw89/mac80211.c | 119 ++++++++++++++++--
 drivers/net/wireless/realtek/rtw89/regd.c     |  10 +-
 3 files changed, 120 insertions(+), 10 deletions(-)
drivers/net/wireless/realtek/rtw89/core.h +0 -0
index 8425bd0b3b8..a46ba36abd9 100644

drivers/net/wireless/realtek/rtw89/core.h struct rtw89_vif_link { · line 4875

Quoted 4 lines
drivers/net/wireless/realtek/rtw89/core.h +1 -0
@@ -4872,6 +4872,7 @@ struct rtw89_vif_link {
        enum rtw89_chanctx_idx chanctx_idx;
        enum rtw89_reg_6ghz_power reg_6ghz_power;
        struct rtw89_reg_6ghz_tpe reg_6ghz_tpe;
+       enum ieee80211_ap_reg_power ap_reg_power;

Could you reuse reg_6ghz_power for AP mode ?

Quoted 102 lines
drivers/net/wireless/realtek/rtw89/core.h +0 -0
        u8 mac_id;
        u8 port;
drivers/net/wireless/realtek/rtw89/mac80211.c +1 -0
index 98f4b5c98f6..44365cb7bb2 100644
@@ -150,6 +150,7 @@ static int __rtw89_ops_add_iface_link(struct
 rtw89_dev *rtwdev,
        rtwvif_link->chanctx_assigned = false;
        rtwvif_link->chanctx_idx = RTW89_CHANCTX_0;
        rtwvif_link->reg_6ghz_power = RTW89_REG_6GHZ_POWER_DFLT;
+       rtwvif_link->ap_reg_power = IEEE80211_REG_UNSET_AP;
        rtwvif_link->rand_tsf_done = false;
        rtwvif_link->detect_bcn_count = 0;
        rtwvif_link->last_sync_bcn_tsf = 0;
drivers/net/wireless/realtek/rtw89/mac80211.c +34 -0
@@ -771,6 +772,83 @@ static void rtw89_ops_vif_cfg_changed(struct
 ieee80211_hw *hw,
        }
 }
 
+/* mac80211 sets no 6 GHz power type for an AP, read it from the beacon */
+static enum ieee80211_ap_reg_power
+rtw89_ap_6ghz_power_type(struct rtw89_dev *rtwdev,
+                        struct rtw89_vif_link *rtwvif_link)
+{
+       const size_t ies_offset = offsetof(struct ieee80211_mgmt,
 u.beacon.variable);
+       enum ieee80211_ap_reg_power power_type =
 IEEE80211_REG_UNSET_AP;
+       struct ieee80211_vif *vif = rtwvif_link_to_vif(rtwvif_link);
+       const struct ieee80211_he_6ghz_oper *he_6ghz_oper;
+       const struct ieee80211_he_operation *he_oper;
+       const struct element *elem;
+       struct sk_buff *skb;
+
+       skb = ieee80211_beacon_get_template(rtwdev->hw, vif, NULL,
+                                           rtwvif_link->link_id);
+       if (!skb)
+               return IEEE80211_REG_UNSET_AP;
+
+       if (skb->len < ies_offset)
+               goto out;
+
+       elem = cfg80211_find_ext_elem(WLAN_EID_EXT_HE_OPERATION,
+                                     skb->data + ies_offset,
+                                     skb->len - ies_offset);
+       if (!elem || elem->datalen < sizeof(*he_oper) + 1 ||
+           elem->datalen < ieee80211_he_oper_size(elem->data + 1))
+               goto out;
+
+       he_oper = (const void *)&elem->data[1];
+       he_6ghz_oper = ieee80211_he_6ghz_oper(he_oper);
+       if (!he_6ghz_oper)
+               goto out;
+
+       power_type = cfg80211_6ghz_power_type(he_6ghz_oper->control,

0);

drivers/net/wireless/realtek/rtw89/mac80211.c +13 -0
+
+       /* only LPI and VLP are supported for an AP */
+       if (power_type != IEEE80211_REG_LPI_AP &&
+           power_type != IEEE80211_REG_VLP_AP)
+               power_type = IEEE80211_REG_UNSET_AP;
+
+out:
+       dev_kfree_skb_any(skb);
+       return power_type;
+}
+
+static void rtw89_ap_6ghz_power_update(struct rtw89_dev *rtwdev,
+                                      struct rtw89_vif_link

*rtwvif_link)

drivers/net/wireless/realtek/rtw89/mac80211.c +12 -0
+{
+       struct ieee80211_vif *vif = rtwvif_link_to_vif(rtwvif_link);
+       enum ieee80211_ap_reg_power power_type;
+       const struct rtw89_chan *chan;
+
+       if (vif->type != NL80211_IFTYPE_AP || vif->p2p)
+               return;
+
+       chan = rtw89_chan_get(rtwdev, rtwvif_link->chanctx_idx);
+       if (chan->band_type != RTW89_BAND_6G) {
+               /* the AP may have left 6 GHz with a channel switch */
+               if (rtwvif_link->ap_reg_power !=

IEEE80211_REG_UNSET_AP) {
+ rtwvif_link->ap_reg_power =
IEEE80211_REG_UNSET_AP;
+ rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link,
false);

drivers/net/wireless/realtek/rtw89/mac80211.c +11 -0
+               }
+               return;
+       }
+
+       power_type = rtw89_ap_6ghz_power_type(rtwdev, rtwvif_link);
+       if (power_type == rtwvif_link->ap_reg_power)
+               return;
+
+       rtwvif_link->ap_reg_power = power_type;
+       if (rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link, true)) {
+               /* fall back to the default power type, retry on the next

beacon */

drivers/net/wireless/realtek/rtw89/mac80211.c static void rtw89_ops_vif_cfg_changed(struct ieee80211_hw *hw, · line 839

Quoted 5 lines
drivers/net/wireless/realtek/rtw89/mac80211.c +5 -0
+               rtwvif_link->ap_reg_power = IEEE80211_REG_UNSET_AP;
+               rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link, false);
+       }
+}
+

Handle the AP mode things in rtw89_reg_6ghz_recalc(). See below.

Quoted 20 lines

static void rtw89_ops_link_info_changed(struct ieee80211_hw *hw,

                                        struct ieee80211_vif *vif,
                                        struct ieee80211_bss_conf

*conf,

drivers/net/wireless/realtek/rtw89/mac80211.c +3 -1
@@ -799,8 +877,10 @@ static void rtw89_ops_link_info_changed(struct
 ieee80211_hw *hw,
                WRITE_ONCE(rtwvif_link->sync_bcn_tsf, 0);
        }
 
-       if (changed & BSS_CHANGED_BEACON)
+       if (changed & BSS_CHANGED_BEACON) {
+               rtw89_ap_6ghz_power_update(rtwdev, rtwvif_link);
                rtw89_chip_h2c_update_beacon(rtwdev, rtwvif_link);
+       }
 
        if (changed & BSS_CHANGED_ERP_SLOT)
                rtw89_conf_tx(rtwdev, rtwvif_link);
drivers/net/wireless/realtek/rtw89/mac80211.c +0 -0
@@ -841,43 +921,56 @@ static int rtw89_ops_start_ap(struct ieee80211_hw
 *hw,
                return -ENOLINK;

drivers/net/wireless/realtek/rtw89/mac80211.c static int rtw89_ops_start_ap(struct ieee80211_hw · line 930

Quoted 10 lines
drivers/net/wireless/realtek/rtw89/mac80211.c +5 -2
        }
 
+       rtwvif_link->ap_reg_power = IEEE80211_REG_UNSET_AP;
+
        chan = rtw89_chan_get(rtwdev, rtwvif_link->chanctx_idx);
-       if (chan->band_type == RTW89_BAND_6G)
-               return -EOPNOTSUPP;
+       if (chan->band_type == RTW89_BAND_6G) {
+               if (vif->p2p)
+                       return -EOPNOTSUPP;

Given that our p2p has no he cap, would this case really happen ?

Quoted 115 lines
drivers/net/wireless/realtek/rtw89/mac80211.c +14 -4
+
+               rtwvif_link->ap_reg_power =
 rtw89_ap_6ghz_power_type(rtwdev, rtwvif_link);
+               if (rtwvif_link->ap_reg_power ==
 IEEE80211_REG_UNSET_AP)
+                       return -EOPNOTSUPP;
+       }
 
        if (rtwdev->scanning)
                rtw89_hw_scan_abort(rtwdev,
 rtwdev->scan_info.scanning_vif);
 
+       /* must do rtw89_reg_6ghz_recalc() before rfk channel */
+       ret = rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link, true);
+       if (ret)
+               goto err;
+
        ether_addr_copy(rtwvif_link->bssid, link_conf->bssid);
        rtw89_cam_bssid_changed(rtwdev, rtwvif_link);
        ret = rtw89_mac_port_update(rtwdev, rtwvif_link);
        if (ret) {
                rtw89_warn(rtwdev, "failed to update mac port\n");
-               return ret;
+               goto err;
        }
 
        ret = rtw89_chip_h2c_assoc_cmac_tbl(rtwdev, rtwvif_link, NULL);
        if (ret) {
                rtw89_warn(rtwdev, "failed to send h2c cmac table\n");
-               return ret;
+               goto err;
        }
 
        ret = rtw89_fw_h2c_role_maintain(rtwdev, rtwvif_link, NULL,
 RTW89_ROLE_TYPE_CHANGE);
        if (ret) {
                rtw89_warn(rtwdev, "failed to send h2c role info\n");
-               return ret;
+               goto err;
        }
 
        ret = rtw89_fw_h2c_join_info(rtwdev, rtwvif_link, NULL, true);
        if (ret) {
                rtw89_warn(rtwdev, "failed to send h2c join info\n");
-               return ret;
+               goto err;
        }
 
        ret = rtw89_fw_h2c_cam(rtwdev, rtwvif_link, NULL, NULL,
 RTW89_ROLE_TYPE_CHANGE);
        if (ret) {
                rtw89_warn(rtwdev, "failed to send h2c cam\n");
drivers/net/wireless/realtek/rtw89/mac80211.c +7 -2
-               return ret;
+               goto err;
        }
 
        rtw89_chip_rfk_channel(rtwdev, rtwvif_link);
@@ -885,12 +978,17 @@ static int rtw89_ops_start_ap(struct ieee80211_hw
 *hw,
        if (RTW89_CHK_FW_FEATURE(NOTIFY_AP_INFO, &rtwdev->fw)) {
                ret = rtw89_fw_h2c_ap_info_refcount(rtwdev, true);
                if (ret)
-                       return ret;
+                       goto err;
        }
 
        rtw89_queue_chanctx_work(rtwdev);
 
        return 0;
+
+err:
+       rtwvif_link->ap_reg_power = IEEE80211_REG_UNSET_AP;
+       rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link, false);
+       return ret;
 }
 

static

drivers/net/wireless/realtek/rtw89/mac80211.c +3 -0
@@ -917,6 +1015,9 @@ void rtw89_ops_stop_ap(struct ieee80211_hw *hw,
 struct ieee80211_vif *vif,
        rtw89_mac_stop_ap(rtwdev, rtwvif_link);
        rtw89_chip_h2c_assoc_cmac_tbl(rtwdev, rtwvif_link, NULL);
        rtw89_fw_h2c_join_info(rtwdev, rtwvif_link, NULL, true);
+
+       rtwvif_link->ap_reg_power = IEEE80211_REG_UNSET_AP;
+       rtw89_reg_6ghz_recalc(rtwdev, rtwvif_link, false);
 }
 

static int rtw89_ops_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta
*sta,

drivers/net/wireless/realtek/rtw89/regd.c +3 -1
index 017e6a2b4b0..a88e14a031c 100644
@@ -1392,9 +1392,11 @@ static int rtw89_reg_6ghz_power_recalc(struct
 rtw89_dev *rtwdev,
                                       unsigned int *changed)
 {
        struct rtw89_regulatory_info *regulatory = &rtwdev->regulatory;
+       struct ieee80211_vif *vif = rtwvif_link_to_vif(rtwvif_link);
        const struct rtw89_regd *regd = regulatory->regd;
        bool blocked[NUM_OF_RTW89_REG_6GHZ_POWER] = {};
        u8 index = rtw89_regd_get_index(rtwdev, regd);
+       enum ieee80211_ap_reg_power power_type;
        struct ieee80211_bss_conf *bss_conf;
        bool dflt = false;
@@ -1407,7 +1409,13 @@ static int rtw89_reg_6ghz_power_recalc(struct
 rtw89_dev *rtwdev,
        bss_conf = rtw89_vif_rcu_dereference_link(rtwvif_link, true);
 
        if (active) {
-               switch (bss_conf->power_type) {
+               /* an AP uses the power type that rtw89 read from its

beacon */

drivers/net/wireless/realtek/rtw89/regd.c static int rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev, · line 1417

Quoted 5 lines
drivers/net/wireless/realtek/rtw89/regd.c +5 -0
+               if (vif->type == NL80211_IFTYPE_AP)
+                       power_type = rtwvif_link->ap_reg_power;
+               else
+                       power_type = bss_conf->power_type;
+

What I think in mind is:
For AP mode, get power_type from rtw89_ap_6ghz_power_type() here. And deal with another sub-function in rtw89_reg_6ghz_recalc() for AP mode. Then, replace rtw89_ap_6ghz_power_update with rtw89_reg_6ghz_recalc().

Quoted 7 lines
+               switch (power_type) {
                case IEEE80211_REG_VLP_AP:
                        rtwvif_link->reg_6ghz_power =
RTW89_REG_6GHZ_POWER_VLP;
                        break;

--
2.54.0 (Apple Git-157)

#4 lore raw

Hi Zong-Zhe,

Quoted 1 line

Could you reuse reg_6ghz_power for AP mode ?

Yes, v2 drops ap_reg_power.

Quoted 1 line

Given that our p2p has no he cap, would this case really happen ?

Yes. Without the check, wpa_supplicant starts a P2P group on 6 GHz (p2p_group_add freq=5975 he allow_6ghz) and the GO beacons. A phone that joins it gets no HE, the GO sends to it at 54 Mbit/s. With the check START_AP fails with -EOPNOTSUPP, as before this patch. I would keep it, but I can drop it if you prefer.

Quoted 3 lines

For AP mode, get power_type from rtw89_ap_6ghz_power_type() here. And deal with another sub-function in rtw89_reg_6ghz_recalc() for AP mode. Then, replace rtw89_ap_6ghz_power_update with rtw89_reg_6ghz_recalc().

OK, v2 does that. I will send it once the P2P check is settled.

Josef

#5 lore raw
In reply to Josef Schlehofer

Hi Ping-Ke,

two things I saw while testing AP mode on 6 GHz with this series.

In 2 of 121 AP starts on 6 GHz channel 5 with 160 MHz bandwidth the adapter dropped off the USB bus. It did not happen in 181 AP starts on 5 GHz, or in 40 station connections on 6 GHz without the series. AP mode on 6 GHz only runs with the series, so I cannot compare that. Both times it was after power on, after DACK and RX DCK, at the same step:

usb read32 0x20748 fail ret=-71 value=0x0 attempt=0 usb write32 0x20744 fail ret=-71 value=0xeaeaeaea attempt=0

The adapter came back by itself. It is a Cudy BE6500 (0bda:8912) in a USB 3 port with firmware 0.35.80.3.

The second thing is discovery. The 6 GHz AP runs alone here, and my phone often did not list it for minutes. It joins fine once it sees it. I see no FILS discovery or unsolicited broadcast probe response in rtw89. Can the firmware send one of them?

Josef

maintainer
#6 lore raw
Quoted 11 lines · Josef Schlehofer

Hi Ping-Ke,

two things I saw while testing AP mode on 6 GHz with this series.

In 2 of 121 AP starts on 6 GHz channel 5 with 160 MHz bandwidth the adapter dropped off the USB bus. It did not happen in 181 AP starts on 5 GHz, or in 40 station connections on 6 GHz without the series. AP mode on 6 GHz only runs with the series, so I cannot compare that. Both times it was after power on, after DACK and RX DCK, at the same step:

Quoted 2 lines

usb read32 0x20748 fail ret=-71 value=0x0 attempt=0 usb write32 0x20744 fail ret=-71 value=0xeaeaeaea attempt=0

Maybe there are some basic problems on RTL8922AU, but not existing on RTL8922AE. I didn't get this kind of reports.

Quoted 8 lines

The adapter came back by itself. It is a Cudy BE6500 (0bda:8912) in a USB 3 port with firmware 0.35.80.3.

The second thing is discovery. The 6 GHz AP runs alone here, and my phone often did not list it for minutes. It joins fine once it sees it. I see no FILS discovery or unsolicited broadcast probe response in rtw89. Can the firmware send one of them?

Currently, it can't send FILS or unsolicited broadcast probe response in period of 20ms. We did consider this, and firmware is still considering how to implement.

Ping-Ke