aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.h
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.h
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.h')
-rw-r--r--wpa_supplicant/bss.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.h b/wpa_supplicant/bss.h
index 1a603f6..634aa3c 100644
--- a/wpa_supplicant/bss.h
+++ b/wpa_supplicant/bss.h
@@ -1,6 +1,6 @@
/*
* BSS table
- * Copyright (c) 2009-2010, 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.
@@ -88,6 +88,10 @@ struct wpa_bss {
u64 tsf;
/** Time of the last update (i.e., Beacon or Probe Response RX) */
struct os_reltime last_update;
+ /** Estimated throughput in kbps */
+ unsigned int est_throughput;
+ /** Signal-to-noise ratio in dB */
+ int snr;
/** ANQP data */
struct wpa_bss_anqp *anqp;
/** Length of the following IE field in octets (from Probe Response) */