]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: 802.11: fix RSSI (and NF)
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 1 Apr 2022 22:31:23 +0000 (22:31 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 5 Apr 2022 14:47:13 +0000 (14:47 +0000)
commit7b9d8e33bc4ee0b8cc22ab28a1f09a062e103bd5
tree8354ad31caed39aee623cf1d7c5cc70dcd07ef23
parent7311128e69b8927d866f9db8c9fa7c5d54eff692
LinuxKPI: 802.11: fix RSSI (and NF)

As in 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de nf and rss should be
signed and not unsigned.  Change the types in the header and while
here change a magic number to a define as done elsewhere (value does
not change).

When calculating c_rssi we need to make it relative so subtract nf.
And while here improve the debug output.

This will hopefully fix ifconfig wlanN list scan S:N output which
tools use to chose a BSSID and help net80211 internal calculations.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 60970a328e280b25b05f1d9a9de1ef91af573c4a)
sys/compat/linuxkpi/common/include/net/mac80211.h
sys/compat/linuxkpi/common/src/linux_80211.c