wifi: rtw89: phy: ignore DCFO if not defined in chip_info

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
This commit is contained in:
Ping-Ke Shih
2025-11-14 14:01:22 +08:00
parent 9df55e8d41
commit 5607a141bf

View 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) {