Module Name: src Committed By: roy Date: Mon Apr 11 08:57:19 UTC 2016
Modified Files: src/external/bsd/wpa/dist/src/drivers: driver_bsd.c Log Message: Only FreeBSD treats rssi this way, so #ifdef it and just treat rssi as a number for other OS. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/external/bsd/wpa/dist/src/drivers/driver_bsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/wpa/dist/src/drivers/driver_bsd.c diff -u src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.24 src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.25 --- src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.24 Wed Mar 23 08:51:02 2016 +++ src/external/bsd/wpa/dist/src/drivers/driver_bsd.c Mon Apr 11 08:57:19 2016 @@ -1374,11 +1374,16 @@ wpa_driver_bsd_add_scan_entry(struct wpa result->caps = sr->isr_capinfo; result->qual = sr->isr_rssi; result->noise = sr->isr_noise; + +#ifdef __FreeBSD__ /* * 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; +#else + result->level = sr->isr_rssi; +#endif pos = (u8 *)(result + 1);