[wowlan]Fix save config error

Peiyong Feng (冯培勇) Peiyong.Feng at mediatek.com
Mon Aug 4 06:21:06 EDT 2014


Dear all,

From 34ff0cbe24f1ab024721c8c192b7a357a75fe6b5 Mon Sep 17 00:00:00 2001
From: "peiyong.feng" <peiyong.feng at mediatek.com>
Date: Mon, 4 Aug 2014 18:11:29 +0800
Subject: [PATCH] wowlan_triggers should contain '"'.

This will results supplicant init failure if user has saved config by save_config cmd.

Tested on Android

Signed-off-by: peiyong.feng <peiyong.feng at mediatek.com>
---
 wpa_supplicant/config_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 98855d8..73ad57a 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1170,7 +1170,7 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
 			config->tdls_external_control);
 
 	if (config->wowlan_triggers)
-		fprintf(f, "wowlan_triggers=\"%s\"\n",
+		fprintf(f, "wowlan_triggers=%s\n",
 			config->wowlan_triggers);
 
 	if (config->bgscan)
-- 
1.7.9



-Peiyong Feng


************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!


More information about the HostAP mailing list