From 54ac5aa27129948115bb362b7efdbaa5c8b86c99 Mon Sep 17 00:00:00 2001 From: Alexander Bondar Date: Mon, 3 Mar 2014 14:53:18 +0200 Subject: [PATCH] config: Add bgscan option when saving global configuration Signed-off-by: Alexander Bondar --- 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 850a6cf9d..4f5813011 100644 --- a/wpa_supplicant/config_file.c +++ b/wpa_supplicant/config_file.c @@ -1118,6 +1118,9 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config) if (config->tdls_external_control) fprintf(f, "tdls_external_control=%d\n", config->tdls_external_control); + + if (config->bgscan) + fprintf(f, "bgscan=\"%s\"\n", config->bgscan); } #endif /* CONFIG_NO_CONFIG_WRITE */