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, Oct 10, 11:53 PM
Unknown Object (File)
Fri, Oct 10, 11:53 PM
Unknown Object (File)
Fri, Oct 10, 11:53 PM
Unknown Object (File)
Fri, Oct 10, 5:28 PM
Unknown Object (File)
Sep 12 2025, 11:23 AM
Unknown Object (File)
Sep 12 2025, 4:31 AM
Unknown Object (File)
Sep 11 2025, 9:31 AM
Unknown Object (File)
Sep 8 2025, 6:34 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.Jul 28 2025, 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.