wifi: rtw89: 8852b: add chip_ops::set_channel_help
authorPing-Ke Shih <pkshih@realtek.com>
Sun, 9 Oct 2022 12:53:55 +0000 (20:53 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 12 Oct 2022 04:34:55 +0000 (07:34 +0300)
commitd0a95ef3ed86762d2356fd5443bebe7a6ef140c7
tree01e06b3a4fa851d9b2609c62a030abf7d2021bbc
parent6e5971503e7dc5e496fb357268242d69abb73f45
wifi: rtw89: 8852b: add chip_ops::set_channel_help

This chip_ops is to assist set_channel, because we need setup and restore
hardware before and after set_channel.

Before set_channel, we stop transmitting, reset PPDU status, disable TSSI,
and disable ADC. After set_channel, do opposite things in reverse order.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221009125403.19662-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b.c