rtw88: 8821c: Correct CCK RSSI
authorGuo-Feng Fan <vincent_fann@realtek.com>
Tue, 2 Feb 2021 05:50:11 +0000 (13:50 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Feb 2021 10:51:33 +0000 (12:51 +0200)
commitb0d3016f423834177379cc4237964f1162599b5f
treef859af040a17355eed18672fa1355f7fb3fba4f4
parentadba838af159914eb98fcd55bfd3a89c9a7d41a8
rtw88: 8821c: Correct CCK RSSI

Incorrect CCK RSSI may cause periodically scan from upper layer.

8821c phy status does NOT has actual value of CCK power. It provides only
lna and vga index. Driver have to use these indexes to calculate
actual RSSI.

Signed-off-by: Guo-Feng Fan <vincent_fann@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/20210202055012.8296-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8821c.c
drivers/net/wireless/realtek/rtw88/rtw8821c.h