]> git.baikalelectronics.ru Git - kernel.git/commit
rtw89: extend subband for 6G band
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 11 Feb 2022 07:59:50 +0000 (15:59 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 14 Feb 2022 18:06:22 +0000 (20:06 +0200)
commita23a7588849029e0b7e9e714edc2ba67aa0b4fec
tree3c18b4fc94f029ddd15c2ebb179dc5bcc517b24e
parenta44c9f1214a2d4a625cba3a0d4bb1fa26d2b486e
rtw89: extend subband for 6G band

Split 6G band into 8 sub-bands where indexes are from 0 to 7,
i.e. RTW89_CH_6G_BAND_IDX[0-7]. Then, decide subband by both
band and channel instead of just channel because conflicts
between 5G channels and 6G channels.

Moreover, add default case to the existing use of switch (subband).

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/20220211075953.40421-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c