aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorPurushottam Kushwaha <pkushwah@qti.qualcomm.com>2017-03-06 07:53:10 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-09 13:44:26 (GMT)
commitd0330d57f3d320719c1f8fc8478a6dc5ef613946 (patch)
tree4bb6f7226f56455bfb427c961ef19a703bfae540 /wpa_supplicant/config_file.c
parentb696f791ac011a7d9bed73db11c16199b56aa2b1 (diff)
downloadhostap-d0330d57f3d320719c1f8fc8478a6dc5ef613946.zip
hostap-d0330d57f3d320719c1f8fc8478a6dc5ef613946.tar.gz
hostap-d0330d57f3d320719c1f8fc8478a6dc5ef613946.tar.bz2
nl80211: Add option to delay start of schedule scan plans
The userspace may want to delay the the first scheduled scan. This enhances sched_scan to add initial delay (in seconds) before starting first scan cycle. The driver may optionally choose to ignore this parameter and start immediately (or at any other time). This uses NL80211_ATTR_SCHED_SCAN_DELAY to add this via user global configurable option: sched_scan_start_delay. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 160a5da..2b46fed 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1320,6 +1320,10 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
fprintf(f, "sched_scan_interval=%u\n",
config->sched_scan_interval);
+ if (config->sched_scan_start_delay)
+ fprintf(f, "sched_scan_start_delay=%u\n",
+ config->sched_scan_start_delay);
+
if (config->external_sim)
fprintf(f, "external_sim=%d\n", config->external_sim);