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 2/3] wifi: rtw89: share HE and EHT capabilities with P2P interfaces
Date: Thu, 3 Dec 2026 12:11:22 +0100 [thread overview]
Message-ID: <20261203111123.62650-3-pepe.schlehofer@gmail.com> (raw)
In-Reply-To: <20261203111123.62650-1-pepe.schlehofer@gmail.com>
rtw89 registers its HE and EHT capabilities for station and AP
interfaces only, so mac80211 finds none for a P2P client or a P2P GO.
A station that joins a P2P GO is then handled as a station without HE.
A GO on 5 GHz sent to an HE phone at HT rates.
Let a P2P client use the station capabilities and a P2P GO the AP
capabilities.
Suggested-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
---
v2: new patch
drivers/net/wireless/realtek/rtw89/core.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index 2ea4dec5e9e..edd350b8a21 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -6461,9 +6461,16 @@ static int rtw89_init_he_eht_cap(struct rtw89_dev *rtwdev,
return -ENOMEM;
for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) {
+ u16 types_mask;
+
switch (iftype) {
case NL80211_IFTYPE_STATION:
+ types_mask = BIT(NL80211_IFTYPE_STATION) |
+ BIT(NL80211_IFTYPE_P2P_CLIENT);
+ break;
case NL80211_IFTYPE_AP:
+ types_mask = BIT(NL80211_IFTYPE_AP) |
+ BIT(NL80211_IFTYPE_P2P_GO);
break;
default:
continue;
@@ -6474,7 +6481,7 @@ static int rtw89_init_he_eht_cap(struct rtw89_dev *rtwdev,
break;
}
- iftype_data[idx].types_mask = BIT(iftype);
+ iftype_data[idx].types_mask = types_mask;
rtw89_init_he_cap(rtwdev, band, iftype, &iftype_data[idx]);
rtw89_init_eht_cap(rtwdev, band, iftype, &iftype_data[idx]);
--
2.54.0 (Apple Git-157)
next prev parent 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 [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 ` Josef Schlehofer [this message]
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-3-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