Page MenuHomeFreeBSD

net80211: define a type for rssi values
ClosedPublic

Authored by bz on Fri, May 15, 5:19 PM.
Tags
None
Referenced Files
F157073559: D57021.diff
Mon, May 18, 7:07 AM
Unknown Object (File)
Fri, May 15, 11:44 PM
Unknown Object (File)
Fri, May 15, 11:44 PM
Unknown Object (File)
Fri, May 15, 11:43 PM

Details

Summary

Due to net80211 keeping values in 0.5dBm relative to the noise floor
an int8_t is not good enough to prevent a double wrap around, which
means the reported rssi values can be wrong (see D50928 or likely
a commit in the future for more information).

In order to address the problem and not break the userspace API,
start by defining a type within the kernel and use that. In a
next step we will then update the int8_t to int16_t to avoid the
problem up to the ioctl code. This will then allow us to work
on the the user space API indepedently (see PR 293016 for possible
impact outside the base system).

No functional changes intended.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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