rtw89: get channel parameters of 160MHz bandwidth

Calculate the offset of center and primary frequencies to get hardware
indices of center channel and primary channel, and then use them to
configure hardware to a specific channel.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220222032103.29392-1-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2022-02-22 11:21:03 +08:00 • committed by Kalle Valo
commit e715f10f3d
2 changed files with 36 additions and 15 deletions