wifi: rtw89: 8852b: add channel encoding for hw_scan
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 20 Feb 2023 07:02:00 +0000 (15:02 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 22 Feb 2023 12:32:12 +0000 (14:32 +0200)
commit4f24d7aa575a3c01192faa7f4fb6a91c54f4ef47
tree8ef1fcc686d722e9c9deadcf007ad8eeffef4ac0
parentbb9040b3ff970529ceaa20b064c113d5ffd5520f
wifi: rtw89: 8852b: add channel encoding for hw_scan

To obtain correct packet frequency for hw_scan, 52b needs to decode
the channel index obtained from hardware. Change the driver related
set channel part as well to make driver/firmware compatible.

Signed-off-by: Po-Hao Huang <phhuang@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/20230220070202.29868-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b.c