rtw89: phy: handle txpwr lmt/lmt_ru of 160M bandwidth
Ping-Ke Shih
maintainerPATCH 2/2 rtw89: phy: handle txpwr lmt/lmt_ru of 160M bandwidth
From: Zong-Zhe Yang <[email protected]>
Add handling to fill struct rtw89_txpwr_limit and rtw89_txpwr_limit_ru for 160Mhz bandwidth case. And enlarge RTW89_5G_BW_NUM because the chip under planning can support 160Mhz bandwidth on 5G band.
Moreover, refine the filling of OFDM entry of struct rtw89_txpwr_limit by using the value corresponding to primary channel.
E.g. center channel 38 (40Mhz bandwidth case)
Originally OFDM entry was filled by value corresponding to 'ch - 2' (36) Now, we consider that it could be 36 or 40.
E.g. cneter channel 42 (80Mhz bandwidth case)
Originally OFDM entry was filled by value corresponding to 'ch - 6' (36) Now, we consider that it could be 36, 40, 44, or 48.
--- drivers/net/wireless/realtek/rtw89/core.h | 2 +- drivers/net/wireless/realtek/rtw89/phy.c | 115 ++++++++++++++++++++-- 2 files changed, 110 insertions(+), 7 deletions(-)
drivers/net/wireless/realtek/rtw89/core.h +1 -1
@@ -572,7 +572,7 @@ enum rtw89_ps_mode { };#define RTW89_2G_BW_NUM (RTW89_CHANNEL_WIDTH_40 + 1) -#define RTW89_5G_BW_NUM (RTW89_CHANNEL_WIDTH_80 + 1) +#define RTW89_5G_BW_NUM (RTW89_CHANNEL_WIDTH_160 + 1)#define RTW89_6G_BW_NUM (RTW89_CHANNEL_WIDTH_160 + 1)#define RTW89_PPE_BW_NUM (RTW89_CHANNEL_WIDTH_80 + 1)
drivers/net/wireless/realtek/rtw89/phy.c +109 -6
169 lines not on this page · raw message
Signature · 1 line
2.25.1