rtw88: 8822c: fix lc calibration timing
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 26 Apr 2021 01:32:52 +0000 (09:32 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 22 Jun 2021 15:18:16 +0000 (18:18 +0300)
commit05684fd583e1acc34dddea283838fbfbed4904a0
tree2f568842216812a1feee4b15a84da4efbe0f93b4
parent1188301fd8ef370ef344a98fbbf04b8b07148294
rtw88: 8822c: fix lc calibration timing

Before this patch, we use value from 2 seconds ago to decide
whether we should do lc calibration.
Although this don't happen frequently, fix flow to the way it should be.

Fixes: 7ae7784ec2a8 ("rtw88: 8822c: add LC calibration for RTL8822C")
Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210426013252.5665-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8822c.c