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)
commit8e438ad4826ca0d75fd29eefbd1eb6e43dc8ea93
tree3c18b4fc94f029ddd15c2ebb179dc5bcc517b24e
parent0701a42499d837bfa6596eb79c777e72dd6431d0
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