]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60a54a59c1838d7e4949b4504ad60aee146ca13f
treef859af040a17355eed18672fa1355f7fb3fba4f4
parent8bef973dea02f1fcc485ea0e1125b3d06165e2ab
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