Page MenuHomeFreeBSD

bsnmp: wlan: use correct value for rssi
ClosedPublic

Authored by bz on Jun 19 2025, 1:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 15, 11:12 AM
Unknown Object (File)
Mon, Aug 11, 8:28 AM
Unknown Object (File)
Mon, Aug 4, 10:05 PM
Unknown Object (File)
Thu, Jul 31, 5:40 PM
Unknown Object (File)
Thu, Jul 31, 6:38 AM
Unknown Object (File)
Tue, Jul 29, 6:32 AM
Unknown Object (File)
Tue, Jul 29, 1:22 AM
Unknown Object (File)
Mon, Jul 28, 10:23 PM
Subscribers

Details

Summary

net80211 keeps the rssi value in 0.5bm relative to the noise floor
(see comment in ieee80211_node.h). Do proper maths to get a plain
rssi value back (*).

(*) Not quite yet but that's a general problem throughout the stack.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Jun 19 2025, 1:28 AM
emaste added a subscriber: emaste.

(*) Not quite yet but that's a general problem throughout the stack.

IOW we're just making bsnmp consistent with RSSI reporting elsewhere, OK. I guess another thing for us to add to our Wi-Fi tech debt list.

This revision is now accepted and ready to land.Mon, Jul 28, 6:03 PM

(*) Not quite yet but that's a general problem throughout the stack.

IOW we're just making bsnmp consistent with RSSI reporting elsewhere, OK. I guess another thing for us to add to our Wi-Fi tech debt list.

See https://reviews.freebsd.org/D50928 but I by now think we should try to keep an original signal value (or multiple) if avail and then keep noise along, and leave rssi on the side. But that's for there and I should update that review.

This revision was automatically updated to reflect the committed changes.