svn commit: r250727 - stable/9/usr.sbin/wpa/wpa_supplicant
Eitan Adler
eadler at FreeBSD.org
Fri May 17 00:14:37 UTC 2013
Author: eadler
Date: Fri May 17 00:14:36 2013
New Revision: 250727
URL: http://svnweb.freebsd.org/changeset/base/250727
Log:
MFC r250528:
Teach wpa_supplicant to properly compute wireless signal strength.
PR: bin/170631
Modified:
stable/9/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
Directory Properties:
stable/9/usr.sbin/wpa/ (props changed)
stable/9/usr.sbin/wpa/wpa_supplicant/ (props changed)
Modified: stable/9/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
==============================================================================
--- stable/9/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c Thu May 16 23:30:11 2013 (r250726)
+++ stable/9/usr.sbin/wpa/wpa_supplicant/driver_freebsd.c Fri May 17 00:14:36 2013 (r250727)
@@ -693,6 +693,11 @@ wpa_driver_bsd_add_scan_entry(struct wpa
result->caps = sr->isr_capinfo;
result->qual = sr->isr_rssi;
result->noise = sr->isr_noise;
+ /*
+ * the rssi value reported by the kernel is in 0.5dB steps relative to
+ * the reported noise floor. see ieee80211_node.h for details.
+ */
+ result->level = sr->isr_rssi / 2 + sr->isr_noise;
pos = (u8 *)(result + 1);
More information about the svn-src-stable-9
mailing list