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 1/3] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency
Date: Thu,  3 Dec 2026 12:11:21 +0100	[thread overview]
Message-ID: <20261203111123.62650-2-pepe.schlehofer@gmail.com> (raw)
In-Reply-To: <20261203111123.62650-1-pepe.schlehofer@gmail.com>

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.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
---
v2: no change

 drivers/net/wireless/realtek/rtw89/core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index b4d72403e0b..2ea4dec5e9e 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -6345,6 +6345,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;
 	}
 }
-- 
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 [PATCH rtw-next v2 0/3] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer
2026-12-03 11:11 ` Josef Schlehofer [this message]
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-2-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