aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-02-22 08:50:55 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-22 09:09:54 (GMT)
commit1d747e2a98d5f5084d2b36c5a75cbe45fcf52d45 (patch)
tree8d47c49a11f64b84032c91d850c79a8e4ce6ed4e /wpa_supplicant/bss.c
parenta1b790eb9d7514d1a6e0582a07f695a1564caa59 (diff)
downloadhostap-1d747e2a98d5f5084d2b36c5a75cbe45fcf52d45.zip
hostap-1d747e2a98d5f5084d2b36c5a75cbe45fcf52d45.tar.gz
hostap-1d747e2a98d5f5084d2b36c5a75cbe45fcf52d45.tar.bz2
Add snr and est_throughput to the BSS entries
These values were previously used only for sorting the scan results, but it may be useful to provide access to the used values through the BSS entries. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 3b476d5..b4c47e2 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -1,6 +1,6 @@
/*
* BSS table
- * Copyright (c) 2009-2012, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2009-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
@@ -286,6 +286,8 @@ static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src,
dst->noise = src->noise;
dst->level = src->level;
dst->tsf = src->tsf;
+ dst->est_throughput = src->est_throughput;
+ dst->snr = src->snr;
calculate_update_time(fetch_time, src->age, &dst->last_update);
}