wifi: rtw89: 8852c: rfk: recover RX DCK failure
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Dec 2022 02:09:40 +0000 (10:09 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 14 Dec 2022 12:26:17 +0000 (14:26 +0200)
commit9c22d603e255ece73e61e3b3f93dae8ab82c17ff
tree3362e617a564c9ad9536ead69ae1379917383759
parent21b5f159a2ee47d30f418559f6ece0088c80199f
wifi: rtw89: 8852c: rfk: recover RX DCK failure

RX DCK stands for RX DC calibration that affects CCA, so abnormal
calibration values resulted from calibration failure can cause TX get
stuck.

To solve this, redo calibration if result is bad (over thresholds). When
retry count is over, do recovery that sets high gain fields of RX DCK
results from low gain fields.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221209020940.9573-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/reg.h
drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c