]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: phy: ignore DCFO if not defined in chip_info
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 14 Nov 2025 06:01:22 +0000 (14:01 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 18 Nov 2025 01:23:36 +0000 (09:23 +0800)
For WiFi 7 chips, DCFO (digital carrier frequency offset) feature isn't
supported, so the corresponding registers aren't defined in chip_info.
Check and ignore this feature accordingly.

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

index 28e2b15240a7a835dfa7ba218f8a8fbaed467185..08eb3fa6b3470e9b5083e31d326d53e888ad0ba9 100644 (file)
@@ -4608,7 +4608,7 @@ static void rtw89_dcfo_comp(struct rtw89_dev *rtwdev, s32 curr_cfo)
        s32 dcfo_comp_val;
        int sign;
 
-       if (rtwdev->chip->chip_id == RTL8922A)
+       if (!dcfo_comp)
                return;
 
        if (!is_linked) {