mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user