Commit 1e6f0d2a authored by Johnson Lin's avatar Johnson Lin Committed by Kalle Valo
Browse files

rtw89: disabled IGI configuration for unsupported hardware



Bypass IGI, known as Rx gain, adjustment flow for incompatible hardware
architectures.

Signed-off-by: default avatarJohnson Lin <johnson.lin@realtek.com>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220318023214.32411-7-pkshih@realtek.com
parent bed4045f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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
+2 −1
Original line number Diff line number Diff line
@@ -3309,6 +3309,7 @@ void rtw89_phy_dig(struct rtw89_dev *rtwdev)
		    dig->igi_rssi, dig->dyn_igi_max, dig->dyn_igi_min,
		    dig->igi_fa_rssi);

	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);