diff options
| author | Sam Sheridan <sam@sheridan.co.uk> | 2026-11-26 04:59:29 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2026-11-26 18:46:21 +0000 |
| commit | 26e7dea8e0eb6c7e534cd0d3e722e86a1a8e0436 (patch) | |
| tree | 8b7d0d035301707202328d157aac63dbdea6258f /usr.bin/lorder/tests/lorder_test.sh | |
| parent | 69141e71f3ee189ae465e91da4bda439fbbba2bf (diff) | |
The FreeBSD driver wrapper converts net80211's half-dB RSSI relative
to the noise floor into an absolute signal level, but leaves
WPA_SCAN_LEVEL_DBM unset.
Without the flag, scan_snr() uses the raw level instead of subtracting
the noise floor. The scan comparator also uses uncapped raw levels
rather than its dB-based SNR calculation. This can favour a stronger
2.4 GHz BSS over a faster 5 GHz BSS.
Set the flag alongside the existing conversion in the __FreeBSD__
branch, as other driver wrappers do for levels reported in dBm.
Tested with base wpa_supplicant 2.11 on FreeBSD 15.1-RELEASE-p7,
using an Intel 8265 on a dual-band network. Three stock cold starts
selected 2.4 GHz; two starts with this change selected 5 GHz HT40.
PR: 301132
Reviewed by: emaste
Diffstat (limited to 'usr.bin/lorder/tests/lorder_test.sh')
0 files changed, 0 insertions, 0 deletions
