wifi: ath11k: modify the calculation of the average signal strength in station mode
authorLingbo Kong <quic_lingbok@quicinc.com>
Sat, 9 Mar 2024 12:11:29 +0000 (20:11 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 19 Jun 2024 14:00:12 +0000 (17:00 +0300)
commitaadeee47e9d7ae98f7116f63fa63fcceffffc65c
tree273cc45bff565c1941c3059b40cbef7c65118419
parent94f228ac4f5b8c22f83865e51d3346c2d44d370d
wifi: ath11k: modify the calculation of the average signal strength in station mode

Currently, the calculation of the average signal strength in station mode
is incorrect.

This is because before calculating the average signal strength, ath11k need
to determine whether the hardware and firmware support db2dbm, if the
hardware and firmware support db2dbm, do not need to add noise floor,
otherwise, need to add noise floor.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23

Signed-off-by: Lingbo Kong <quic_lingbok@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240309121129.5379-1-quic_lingbok@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c