OSDN Git Service

wifi: rtw89: 8851b: add set channel function
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 12 May 2023 06:12:19 +0000 (14:12 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 17 May 2023 08:05:58 +0000 (11:05 +0300)
commite948213fb8560f6d6af6058351758f13a35c9f8d
tree1f26498b1b73597f83aef1af334b29984fec6e4d
parent31df6df89f9394bc544a4ebad62584d56bff1677
wifi: rtw89: 8851b: add set channel function

Set MAC/BB/RF registers according to channel we are going to set. In
additional, certain channels or bands need more deals, such as enable CCK
in 2 GHz band, spur elimination at certain frequencies.

The set channel helper is used to save/restore states before/after setting
channel, and does reset BB to prevent hardware getting stuck in abnormal
state during switching channel and receiving data.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230512061220.16544-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/reg.h
drivers/net/wireless/realtek/rtw89/rtw8851b.c