rtw89: disabled IGI configuration for unsupported hardware
Bypass IGI, known as Rx gain, adjustment flow for incompatible hardware architectures. Signed-off-by: Johnson Lin <johnson.lin@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/20220318023214.32411-7-pkshih@realtek.com
This commit is contained in:
Родитель
bed4045ffb
Коммит
1e6f0d2a67
|
@ -2752,6 +2752,8 @@ static void rtw89_core_setup_phycap(struct rtw89_dev *rtwdev)
|
|||
rtwdev->hal.support_cckpd =
|
||||
!(rtwdev->chip->chip_id == RTL8852A && rtwdev->hal.cv <= CHIP_CBV) &&
|
||||
!(rtwdev->chip->chip_id == RTL8852B && rtwdev->hal.cv <= CHIP_CAV);
|
||||
rtwdev->hal.support_igi =
|
||||
rtwdev->chip->chip_id == RTL8852A && rtwdev->hal.cv <= CHIP_CBV;
|
||||
}
|
||||
|
||||
static int rtw89_chip_efuse_info_setup(struct rtw89_dev *rtwdev)
|
||||
|
|
|
@ -2489,6 +2489,7 @@ struct rtw89_hal {
|
|||
u8 tx_nss;
|
||||
u8 rx_nss;
|
||||
bool support_cckpd;
|
||||
bool support_igi;
|
||||
};
|
||||
|
||||
#define RTW89_MAX_MAC_ID_NUM 128
|
||||
|
|
|
@ -3309,7 +3309,8 @@ void rtw89_phy_dig(struct rtw89_dev *rtwdev)
|
|||
dig->igi_rssi, dig->dyn_igi_max, dig->dyn_igi_min,
|
||||
dig->igi_fa_rssi);
|
||||
|
||||
rtw89_phy_dig_config_igi(rtwdev);
|
||||
if (rtwdev->hal.support_igi)
|
||||
rtw89_phy_dig_config_igi(rtwdev);
|
||||
|
||||
rtw89_phy_dig_dyn_pd_th(rtwdev, dig->igi_fa_rssi, dig->dyn_pd_th_en);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче