wifi: rtw88: call rtw8821c_switch_rf_set() according to chip variant
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 17 Apr 2023 14:03:58 +0000 (16:03 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 20 Apr 2023 12:34:38 +0000 (15:34 +0300)
commit172591baa2cc1ec04869a0d798821a6ca9a2f4b4
treea3e169ab5ea257b9f67180189bc7458ac2181176
parent97c75e1adeda78b3794936c617d8b86e9ebd54f5
wifi: rtw88: call rtw8821c_switch_rf_set() according to chip variant

We have to call rtw8821c_switch_rf_set() with SWITCH_TO_WLG or
SWITCH_TO_BTG according to the chip variant as denoted in rfe_option.
The information which argument to use for which variant has been
taken from the vendor driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230417140358.2240429-5-s.hauer@pengutronix.de
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/rtw8821c.c