]> git.baikalelectronics.ru Git - kernel.git/commit
rtw89: phy: handle txpwr lmt/lmt_ru of 6G band
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 18 Feb 2022 03:40:16 +0000 (11:40 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 22 Feb 2022 15:29:04 +0000 (17:29 +0200)
commit734df67c2c5f1ebc5376c6d3e92f63de9fb488b9
treeede27587a9d6868cda43dcbcb2744357f973e8d7
parentbcf0f4ebce9029ba291f5dc3a82c461992bddbf1
rtw89: phy: handle txpwr lmt/lmt_ru of 6G band

Add declarations of 6G stuff and extend rtw89_channel_to_idx() to
map 6G's channels to 6G channel indexes. While 6G, correspondingly
read 6G's entry for tx power limit and limit_ru.

After this, we should pay attention to chip_info::support_bands.
If a chip declares 6G support, it must configure txpwr_lmt_6g and
txpwr_lmt_ru_6g in case accessing NULL pointer while setting tx power
limit/limit_ru on 6G band.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220218034017.9160-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/phy.c