From 1f539c78f49b671ac517933c5d515ce33251f857 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 8 Jan 2017 00:02:13 +0200 Subject: [PATCH] Store autoscan to configuration file This was forgotten when the parameter was added. Signed-off-by: Jouni Malinen --- wpa_supplicant/config_file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c index dc6aade2f..e92fa52dd 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);