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 1/2] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency
Date: Sun, 29 Nov 2026 13:07:43 +0100	[thread overview]
Message-ID: <20261129120744.88178-2-pepe.schlehofer@gmail.com> (raw)
In-Reply-To: <20261129120744.88178-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>
---
 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 3a80ac8dbbd..d240d0182fa 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -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;
 	}
 }
-- 
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 [PATCH rtw-next 0/2] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer
2026-11-29 12:07 ` Josef Schlehofer [this message]
2026-11-29 12:07 ` [PATCH rtw-next 2/2] " 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-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