aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2015-11-17 13:08:24 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-30 12:03:28 (GMT)
commit32c02261dd8beaaded4b3450204783d6a7f71812 (patch)
treef534c5a8244af7095e4c7a9f0f611388ece58de7 /wpa_supplicant/config.c
parent09ea4309b65594e169f462744fda6f82ff89774f (diff)
downloadhostap-32c02261dd8beaaded4b3450204783d6a7f71812.zip
hostap-32c02261dd8beaaded4b3450204783d6a7f71812.tar.gz
hostap-32c02261dd8beaaded4b3450204783d6a7f71812.tar.bz2
Add support for configuring scheduled scan plans
Add the option to configure scheduled scan plans in the config file. Each scan plan specifies the interval between scans and the number of scan iterations. The last plan will run infinitely and thus specifies only the interval between scan iterations. usage: sched_scan_plans=<interval:iterations> <interval2:iterations2> ... <interval> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index bdcfe9f..b8b19de 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -2281,6 +2281,8 @@ void wpa_config_free(struct wpa_config *config)
os_free(config->bgscan);
os_free(config->wowlan_triggers);
os_free(config->fst_group_id);
+ os_free(config->sched_scan_plans);
+
os_free(config);
}
@@ -4258,6 +4260,7 @@ static const struct global_parse_data global_fields[] = {
{ INT_RANGE(fst_llt, 1, FST_MAX_LLT_MS), 0 },
#endif /* CONFIG_FST */
{ INT_RANGE(wpa_rsc_relaxation, 0, 1), 0 },
+ { STR(sched_scan_plans), 0 },
};
#undef FUNC