]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Store autoscan to configuration file
authorJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 22:02:13 +0000 (00:02 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jan 2017 22:10:57 +0000 (00:10 +0200)
This was forgotten when the parameter was added.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/config_file.c

index dc6aade2fb355f5c0fc0c1a759bfb1d850f447bd..e92fa52ddf2cd2d77bc7324cdf0419b34ee701a1 100644 (file)
@@ -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);