rtw89: get channel parameters of 160MHz bandwidth
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 22 Feb 2022 03:21:03 +0000 (11:21 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 25 Feb 2022 09:39:55 +0000 (11:39 +0200)
commite715f10f3d055939b4cdfcd282ddf13d1dbab7fc
treed5976859023bf612e89c7c2ed90c0fdbd250c1a5
parentc7723917a444c6d59f15365ecf54aa6021d97da5
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
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h