Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/wpa/dist/src/drivers Only FreeBSD treats rssi t...
details: https://anonhg.NetBSD.org/src/rev/c7ad4363d190
branches: trunk
changeset: 814826:c7ad4363d190
user: roy <roy%NetBSD.org@localhost>
date: Mon Apr 11 08:57:19 2016 +0000
description:
Only FreeBSD treats rssi this way, so #ifdef it and just treat rssi
as a number for other OS.
diffstat:
external/bsd/wpa/dist/src/drivers/driver_bsd.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r cbdef7496f5c -r c7ad4363d190 external/bsd/wpa/dist/src/drivers/driver_bsd.c
--- a/external/bsd/wpa/dist/src/drivers/driver_bsd.c Mon Apr 11 08:56:16 2016 +0000
+++ b/external/bsd/wpa/dist/src/drivers/driver_bsd.c Mon Apr 11 08:57:19 2016 +0000
@@ -1374,11 +1374,16 @@
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);
Home |
Main Index |
Thread Index |
Old Index