wifi: rtw89: add RSSI statistics for the case of antenna diversity to debugfs
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 18 Apr 2023 01:28:16 +0000 (09:28 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 5 May 2023 11:58:28 +0000 (14:58 +0300)
commitf6b24241cbec5236c061f90d52acb3d9430f2d43
tree9f7aefab9674e38721dd6eddcf081b5293636c85
parentf48453e058d763e895bde7b072f25b7b519a3500
wifi: rtw89: add RSSI statistics for the case of antenna diversity to debugfs

RSSI strength is only from PHY path A, but there are two antenna for the
module which supports antenna diversity. So, set RSSI value to index 1 of
RSSI array if current antenna is on antenna B. Then, debugfs can show
two RSSI values with a asterisk mark on selected antenna.

  RSSI: -23 dBm (raw=174, prev=173) [-26, -23*]

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