rtw88: 8822c: fix lc calibration timing
authorPo-Hao Huang <phhuang@realtek.com>
Mon, 26 Apr 2021 01:32:52 +0000 (09:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:25 +0000 (16:56 +0200)
commit6cd23b5f401756899480f16f2c05891af1529c46
treee6d423e000d5d6fc9dd321ce7764ca2ccc45bcbc
parentdb2386fa4342495c1b26a7f2694a235656c9b8ea
rtw88: 8822c: fix lc calibration timing

[ Upstream commit 05684fd583e1acc34dddea283838fbfbed4904a0 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw88/rtw8822c.c