brcmfmac: correctly report average RSSI in station info
authorAlvin Šipraga <ALSI@bang-olufsen.dk>
Thu, 6 May 2021 13:20:12 +0000 (13:20 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 10:36:45 +0000 (13:36 +0300)
commit9a1590934d9a02e570636432b93052c0c035f31f
tree6a8b35e2463bf4f87b9b67ca4818a297582a7df0
parentfeb45643762172110cb3a44f99dd54304f33b711
brcmfmac: correctly report average RSSI in station info

The rx_lastpkt_rssi field provided by the firmware is suitable for
NL80211_STA_INFO_{SIGNAL,CHAIN_SIGNAL}, while the rssi field is an
average. Fix up the assignments and set the correct STA_INFO bits. This
lets userspace know that the average RSSI is part of the station info.

Fixes: cae355dc90db ("brcmfmac: Add RSSI information to get_station.")
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210506132010.3964484-2-alsi@bang-olufsen.dk
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c