wifi: rtw89: enlarge the CFO tracking boundary
authorCheng-Chieh Hsieh <cj.hsieh@realtek.com>
Wed, 24 Aug 2022 06:14:25 +0000 (14:14 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 2 Sep 2022 08:36:31 +0000 (11:36 +0300)
The calibration value of XTAL offset may be too large in some wifi
modules, that the CFO tracking mechanism under the existing tracking
boundary can not adjust the CFO to the tolerable range. So we enlarge it.

Signed-off-by: Cheng-Chieh Hsieh <cj.hsieh@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/20220824061425.13764-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.h

index e48d387d33afbd7be4cc1a2cb3af6f84051a9d38..0eeab18fd97e8a544ac0a3060940df2ef1f0df71 100644 (file)
@@ -56,7 +56,7 @@
 #define CFO_TRK_STOP_TH (2 << 2)
 #define CFO_SW_COMP_FINE_TUNE (2 << 2)
 #define CFO_PERIOD_CNT 15
-#define CFO_BOUND 32
+#define CFO_BOUND 64
 #define CFO_TP_UPPER 100
 #define CFO_TP_LOWER 50
 #define CFO_COMP_PERIOD 250