wifi: rtw89: correct the DCFO tracking flow to improve CFO compensation
authorCheng-Chieh Hsieh <cj.hsieh@realtek.com>
Mon, 16 Oct 2023 06:51:14 +0000 (14:51 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 19 Oct 2023 07:28:49 +0000 (10:28 +0300)
commitaecc60e7d3ab3f5cf6189c204efb205b1d541b38
tree6f8bd2f2619a4b3d5ed068a6406ef690d318a965
parent5d2f3c3aaaa680e893b22584a75d9ab27b67e2cd
wifi: rtw89: correct the DCFO tracking flow to improve CFO compensation

DCFO tracking compensate the CFO (carrier frequency offset) by digital
hardware that provides fine CFO estimation. Although the avg_cfo which
is a coarse information becomes zero, still we need DCFO tracking to
compensate the residual CFO. However, the original flow skips the case
when avg_cfo is zero, so we fix it to have expected performance.

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/20231016065115.751662-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c