aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-07 22:02:13 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-07 22:10:57 (GMT)
commit1f539c78f49b671ac517933c5d515ce33251f857 (patch)
tree39981e8622e907b08b615466b8a9f4108eacaa74 /wpa_supplicant/config_file.c
parent58ed9e31d110ea47ad0b077396a4d28882869e0c (diff)
downloadhostap-1f539c78f49b671ac517933c5d515ce33251f857.zip
hostap-1f539c78f49b671ac517933c5d515ce33251f857.tar.gz
hostap-1f539c78f49b671ac517933c5d515ce33251f857.tar.bz2
Store autoscan to configuration file
This was forgotten when the parameter was added. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index dc6aade..e92fa52 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1334,6 +1334,9 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
if (config->bgscan)
fprintf(f, "bgscan=\"%s\"\n", config->bgscan);
+ if (config->autoscan)
+ fprintf(f, "autoscan=%s\n", config->autoscan);
+
if (config->p2p_search_delay != DEFAULT_P2P_SEARCH_DELAY)
fprintf(f, "p2p_search_delay=%u\n",
config->p2p_search_delay);