aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorSam Leffler <sleffler@chromium.org>2011-03-20 10:40:59 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-20 10:40:59 (GMT)
commit78633c37090f52833ac8ddd7867ab13ce69d644b (patch)
treecc335a069418f6e92be9b0558e4cf23b7b66ea91 /wpa_supplicant/config.h
parentcfe53c9aa5743b1a5f6749728e86d399fe5df799 (diff)
downloadhostap-78633c37090f52833ac8ddd7867ab13ce69d644b.zip
hostap-78633c37090f52833ac8ddd7867ab13ce69d644b.tar.gz
hostap-78633c37090f52833ac8ddd7867ab13ce69d644b.tar.bz2
wpa_supplicant: Parameterize BSS table expiration age + count
Replace compile-time BSS cache expiration age and scan count by config parameters that can be set via wpa_cli and the new D-Bus API. The latter is done with interface properties BSSExpireAge and BSSExpireCount.
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 57cd0af..c370362 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -25,6 +25,8 @@
#define DEFAULT_P2P_GO_INTENT 7
#define DEFAULT_P2P_INTRA_BSS 1
#define DEFAULT_BSS_MAX_COUNT 200
+#define DEFAULT_BSS_EXPIRATION_AGE 180
+#define DEFAULT_BSS_EXPIRATION_SCAN_COUNT 2
#define DEFAULT_MAX_NUM_STA 128
#include "config_ssid.h"
@@ -382,6 +384,25 @@ struct wpa_config {
unsigned int bss_max_count;
/**
+ * bss_expiration_age - BSS entry age after which it can be expired
+ *
+ * This value controls the time in seconds after which a BSS entry
+ * gets removed if it has not been updated or is not in use.
+ */
+ unsigned int bss_expiration_age;
+
+ /**
+ * bss_expiration_scan_count - Expire BSS after number of scans
+ *
+ * If the BSS entry has not been seen in this many scans, it will be
+ * removed. A value of 1 means that entry is removed after the first
+ * scan in which the BSSID is not seen. Larger values can be used
+ * to avoid BSS entries disappearing if they are not visible in
+ * every scan (e.g., low signal quality or interference).
+ */
+ unsigned int bss_expiration_scan_count;
+
+ /**
* filter_ssids - SSID-based scan result filtering
*
* 0 = do not filter scan results