wifi: rtw89: 8852c: rfk: correct DACK setting
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Dec 2022 02:09:38 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:49 +0000 (09:32 +0100)
[ Upstream commit b2bab7b14098dcf5d405fa8c76b2c3f6ce9184f9 ]

After filling calibration parameters, set BIT(0) to enable the hardware
circuit, but original set incorrect bit that affects a little TX
performance.

Fixes: 76599a8d0b7d ("rtw89: 8852c: rfk: add DACK")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221209020940.9573-2-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c

index 006c2cf..6387c83 100644 (file)
@@ -338,7 +338,7 @@ static void _dack_reload_by_path(struct rtw89_dev *rtwdev,
                (dack->dadck_d[path][index] << 14);
        addr = 0xc210 + offset;
        rtw89_phy_write32(rtwdev, addr, val32);
-       rtw89_phy_write32_set(rtwdev, addr, BIT(1));
+       rtw89_phy_write32_set(rtwdev, addr, BIT(0));
 }
 
 static void _dack_reload(struct rtw89_dev *rtwdev, enum rtw89_rf_path path)