]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: 8922a: rfk: adjust timeout time of RX DCK
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 28 Apr 2025 11:24:47 +0000 (19:24 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 5 May 2025 01:44:04 +0000 (09:44 +0800)
The RX DCK in firmware could retry 3 times if calibration value is not
stable. Roughly each calibration can be done within 16 ms, so expect
16 * 4 (with additional 16 ms) will be enough. More, in coming MLO, it
will do calibration on two path, so multiply 2.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250428112456.13165-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8922a.c

index cc595cae53f55585b621c2f40db9088535347d42..2ff847eb76fdb0beeca4e6b7bec2f1442464d0c3 100644 (file)
@@ -2071,7 +2071,8 @@ static void __rtw8922a_rfk_init_late(struct rtw89_dev *rtwdev,
        rtw89_phy_rfk_pre_ntfy_and_wait(rtwdev, phy_idx, 5);
 
        rtw89_phy_rfk_dack_and_wait(rtwdev, phy_idx, chan, 58);
-       rtw89_phy_rfk_rxdck_and_wait(rtwdev, phy_idx, chan, false, 32);
+       if (!test_bit(RTW89_FLAG_SER_HANDLING, rtwdev->flags))
+               rtw89_phy_rfk_rxdck_and_wait(rtwdev, phy_idx, chan, false, 128);
 }
 
 static void rtw8922a_rfk_init_late(struct rtw89_dev *rtwdev)