Skip to contentSkip to conversation

rtw89: declare HE capabilities in 6G band

PATCH In review Ping-Ke Shih 2 participants 2 messages Mar 7, 2022 – Mar 9, 2022 Realtek wireless driver (rtw89)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH v2 1/1 rtw89: declare HE capabilities in 6G band

To work properly in 6G band, declare HE 6G capabilities. Without this fix, it can only TX/RX with OFDM rates.

---
v2: use correct le16_encode_bits() and enums.

---
 drivers/net/wireless/realtek/rtw89/core.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/net/wireless/realtek/rtw89/core.c +12 -0
index a0086b14550a8..2a16e38e36151 100644
@@ -2383,6 +2383,18 @@ static void rtw89_init_he_cap(struct rtw89_dev *rtwdev,
 			he_cap->he_mcs_nss_supp.tx_mcs_160 = cpu_to_le16(mcs_map);
 		}
 
+		if (band == NL80211_BAND_6GHZ) {
+			__le16 capa;
+
+			capa = le16_encode_bits(IEEE80211_HT_MPDU_DENSITY_NONE,
+						IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START) |
+			       le16_encode_bits(IEEE80211_VHT_MAX_AMPDU_1024K,
+						IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP) |
+			       le16_encode_bits(IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454,
+						IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN);
+			iftype_data[idx].he_6ghz_capa.capa = capa;
+		}
+
 		idx++;
 	}
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Ping-Ke Shih

To work properly in 6G band, declare HE 6G capabilities. Without this fix, it can only TX/RX with OFDM rates.

Patch applied to wireless-next.git, thanks.

12b604d4ba69 rtw89: declare HE capabilities in 6G band

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches