mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
wifi: rtw89: 8852b: rfk: fine tune IQK parameters to improve performance on 2GHz band
[ Upstream commitb3bfc4fb1e] A few samples get bad performance on 2GHz band, so use proper IQK command code and select another group to have wider range of calibration value. Fixes:f2abe804e8("wifi: rtw89: 8852b: rfk: add IQK") Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230803110150.8457-1-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ebbac3a52b
commit
96c1d7a7d5
@@ -846,7 +846,7 @@ static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
|
|||||||
case ID_NBTXK:
|
case ID_NBTXK:
|
||||||
rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x0);
|
rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x0);
|
||||||
rtw89_phy_write32_mask(rtwdev, R_IQK_DIF4, B_IQK_DIF4_TXT, 0x011);
|
rtw89_phy_write32_mask(rtwdev, R_IQK_DIF4, B_IQK_DIF4_TXT, 0x011);
|
||||||
iqk_cmd = 0x308 | (1 << (4 + path));
|
iqk_cmd = 0x408 | (1 << (4 + path));
|
||||||
break;
|
break;
|
||||||
case ID_NBRXK:
|
case ID_NBRXK:
|
||||||
rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x1);
|
rtw89_phy_write32_mask(rtwdev, R_P0_RFCTM, B_P0_RFCTM_EN, 0x1);
|
||||||
@@ -1078,7 +1078,7 @@ static bool _iqk_nbtxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8
|
|||||||
{
|
{
|
||||||
struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
|
struct rtw89_iqk_info *iqk_info = &rtwdev->iqk;
|
||||||
bool kfail;
|
bool kfail;
|
||||||
u8 gp = 0x3;
|
u8 gp = 0x2;
|
||||||
|
|
||||||
switch (iqk_info->iqk_band[path]) {
|
switch (iqk_info->iqk_band[path]) {
|
||||||
case RTW89_BAND_2G:
|
case RTW89_BAND_2G:
|
||||||
|
|||||||
Reference in New Issue
Block a user