mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add 88 new patches to series. tag: orange-pi-5.17-20220409-0454 * Fix the applicability of patches.megous to the v5.17.3 kernel * Fix series.conf. Disable the patch that is not being applied * Add support for sun50i-h6-orangepi-3-lts * Check the applicability in the series * Move to a patches.armbian folder * Bananapro: add AXP209 regulators * fix-gpio-kconfig remove if EXPERT to allow normal build * sunxi-5.17: Remove unused patches
63 lines
2.1 KiB
Diff
63 lines
2.1 KiB
Diff
From 47552d02afd79d68e5023120833198545d62e78e Mon Sep 17 00:00:00 2001
|
|
From: Ping-Ke Shih <pkshih@realtek.com>
|
|
Date: Fri, 11 Feb 2022 15:59:51 +0800
|
|
Subject: [PATCH 468/544] rtw89: add 6G support to rate adaptive mechanism
|
|
|
|
Construct rate mask of 6G band, and rate adaptive mechanism can work well
|
|
on this band.
|
|
|
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
|
Link: https://lore.kernel.org/r/20220211075953.40421-5-pkshih@realtek.com
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/phy.c | 19 +++++++++++++++++--
|
|
1 file changed, 17 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/phy.c b/drivers/net/wireless/realtek/rtw89/phy.c
|
|
index c491a1153681..69668108e19f 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/phy.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/phy.c
|
|
@@ -161,6 +161,11 @@ static u64 rtw89_phy_ra_mask_cfg(struct rtw89_dev *rtwdev, struct rtw89_sta *rtw
|
|
cfg_mask = u64_encode_bits(mask->control[NL80211_BAND_5GHZ].legacy,
|
|
RA_MASK_OFDM_RATES);
|
|
break;
|
|
+ case RTW89_BAND_6G:
|
|
+ band = NL80211_BAND_6GHZ;
|
|
+ cfg_mask = u64_encode_bits(mask->control[NL80211_BAND_6GHZ].legacy,
|
|
+ RA_MASK_OFDM_RATES);
|
|
+ break;
|
|
default:
|
|
rtw89_warn(rtwdev, "unhandled band type %d\n", hal->current_band_type);
|
|
return -1;
|
|
@@ -254,15 +259,25 @@ static void rtw89_phy_ra_sta_update(struct rtw89_dev *rtwdev,
|
|
ldpc_en = 1;
|
|
}
|
|
|
|
- if (rtwdev->hal.current_band_type == RTW89_BAND_2G) {
|
|
+ switch (rtwdev->hal.current_band_type) {
|
|
+ case RTW89_BAND_2G:
|
|
ra_mask |= sta->supp_rates[NL80211_BAND_2GHZ];
|
|
if (sta->supp_rates[NL80211_BAND_2GHZ] <= 0xf)
|
|
mode |= RTW89_RA_MODE_CCK;
|
|
else
|
|
mode |= RTW89_RA_MODE_CCK | RTW89_RA_MODE_OFDM;
|
|
- } else {
|
|
+ break;
|
|
+ case RTW89_BAND_5G:
|
|
ra_mask |= (u64)sta->supp_rates[NL80211_BAND_5GHZ] << 4;
|
|
mode |= RTW89_RA_MODE_OFDM;
|
|
+ break;
|
|
+ case RTW89_BAND_6G:
|
|
+ ra_mask |= (u64)sta->supp_rates[NL80211_BAND_6GHZ] << 4;
|
|
+ mode |= RTW89_RA_MODE_OFDM;
|
|
+ break;
|
|
+ default:
|
|
+ rtw89_err(rtwdev, "Unknown band type\n");
|
|
+ break;
|
|
}
|
|
|
|
ra_mask_bak = ra_mask;
|
|
--
|
|
2.34.1
|
|
|