[PATCH] config: Add bgscan option when saving global configuration

Ilan Peer ilan.peer
Mon Mar 3 04:53:18 PST 2014


From: Alexander Bondar <alexander.bondar at intel.com>

Signed-off-by: Alexander Bondar <alexander.bondar at intel.com>
---
 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 850a6cf..4f58130 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 */
-- 
1.7.10.4




More information about the Hostap mailing list