wifi: rtw89: adjust channel encoding to common function
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 20 Feb 2023 07:01:59 +0000 (15:01 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 22 Feb 2023 12:32:12 +0000 (14:32 +0200)
commitbb9040b3ff970529ceaa20b064c113d5ffd5520f
tree4818b33ef597ba0ee1ef18ef66d7424e0fbfb6cd
parent31c416e69dbf416583d0d8245d91e7e82b7846b1
wifi: rtw89: adjust channel encoding to common function

Since the range of channel table is identical among ICs. Make channel
encode/decode function common and not IC dependent. So all ICs with
matching firmware that needs this kind of coding can use it directly.
This patch doesn't change logic at all.

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-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/rtw8852c.c