aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/autoscan.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-06-26 16:22:56 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-26 16:22:56 (GMT)
commitc0fba2b38de5134675bf979728e164e42fd6b9e5 (patch)
treec0e4bd7efb14a9839bc0fb38105bb2096ddf8a40 /wpa_supplicant/autoscan.c
parent2bdd8342577c2b1f04f9937131f0fbed0c3bae2c (diff)
downloadhostap-c0fba2b38de5134675bf979728e164e42fd6b9e5.zip
hostap-c0fba2b38de5134675bf979728e164e42fd6b9e5.tar.gz
hostap-c0fba2b38de5134675bf979728e164e42fd6b9e5.tar.bz2
Add autoscan module named exponential
This module will compute the interval on a base exponential. Thus, params to this module are following this format: <base>:<limit> Signed-hostap: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Diffstat (limited to 'wpa_supplicant/autoscan.c')
-rw-r--r--wpa_supplicant/autoscan.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/autoscan.c b/wpa_supplicant/autoscan.c
index 2d4249c..c537291 100644
--- a/wpa_supplicant/autoscan.c
+++ b/wpa_supplicant/autoscan.c
@@ -15,7 +15,14 @@
#include "scan.h"
#include "autoscan.h"
+#ifdef CONFIG_AUTOSCAN_EXPONENTIAL
+extern const struct autoscan_ops autoscan_exponential_ops;
+#endif /* CONFIG_AUTOSCAN_EXPONENTIAL */
+
static const struct autoscan_ops * autoscan_modules[] = {
+#ifdef CONFIG_AUTOSCAN_EXPONENTIAL
+ &autoscan_exponential_ops,
+#endif /* CONFIG_AUTOSCAN_EXPONENTIAL */
NULL
};