rtw89: convert rtw89_band to nl80211_band precisely
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 16 May 2022 00:52:14 +0000 (08:52 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 17 May 2022 15:32:00 +0000 (18:32 +0300)
commita06d2dd7e22f93f98beb15c5ae919f6a58fd2635
tree1ba6697e16af339a929a60910d491a7c4556d7a3
parentaebc048d100073f8f16543ed0c4eefc11b3c0b06
rtw89: convert rtw89_band to nl80211_band precisely

Before 6 GHz band was supported, i.e. only 2 GHz and 5 GHz, they were the
same from the numerical point of view. However, after 6 GHz band support,
we need to do this conversion logically.

Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20220516005215.5878-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/phy.c