projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd82c6
)
bsd: Compute the RSSI level
author
Rui Paulo
<rpaulo@FreeBSD.org>
Wed, 7 Aug 2013 07:57:51 +0000
(10:57 +0300)
committer
Jouni Malinen
<j@w1.fi>
Wed, 7 Aug 2013 07:57:51 +0000
(10:57 +0300)
Signed-hostap: Rui Paulo <rpaulo@FreeBSD.org>
src/drivers/driver_bsd.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_bsd.c
b/src/drivers/driver_bsd.c
index
baf7ae8
..
4dd611a
100644
(file)
--- a/
src/drivers/driver_bsd.c
+++ b/
src/drivers/driver_bsd.c
@@
-1336,6
+1336,11
@@
wpa_driver_bsd_add_scan_entry(struct wpa_scan_results *res,
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);