wifi: rtw89: phy: disable CFO track when two PHY are working simultaneously
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 17 Jan 2025 07:28:28 +0000 (15:28 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 3 Feb 2025 01:57:06 +0000 (09:57 +0800)
To have good performance, adjust hardware XTAL to track CFO (carrier
frequency offset). However, there is only one hardware XTAL, so it is not
possible to track on two PHY simultaneously. It also can't track on single
one PHY when two PHY are working, because the adjustment of XTAL will
affect all PHY. Thus, disable CFO track for this case.

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

index a5299295b7774937197bc64c7980ea76352181dd..5b0cf8314fb2afde384e2de9aba86e65e387373f 100644 (file)
@@ -4600,7 +4600,7 @@ static void rtw89_phy_cfo_dm(struct rtw89_dev *rtwdev)
        cfo->dcfo_avg = 0;
        rtw89_debug(rtwdev, RTW89_DBG_CFO, "CFO:total_sta_assoc=%d\n",
                    rtwdev->total_sta_assoc);
-       if (rtwdev->total_sta_assoc == 0) {
+       if (rtwdev->total_sta_assoc == 0 || rtw89_is_mlo_1_1(rtwdev)) {
                rtw89_phy_cfo_reset(rtwdev);
                return;
        }