Patchwork Fix writing of the wowlan_triggers parameter

login
register
mail settings
Submitter Philippe Nunes
Date July 23, 2014, 10:16 a.m.
Message ID <1406110601-23186-1-git-send-email-philippe.nunes@linux.intel.com>
Download mbox | patch
Permalink /patch/372863/
State Accepted
Headers show

Comments

Philippe Nunes - July 23, 2014, 10:16 a.m.
The parameter wowlan_triggers is a global string and is not recognised
if it is embraced with double-quotes.

Signed-off-by: Philippe Nunes <philippe.nunes@linux.intel.com>
---
 wpa_supplicant/config_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jouni Malinen - Aug. 10, 2014, 9:28 a.m.
On Wed, Jul 23, 2014 at 12:16:41PM +0200, Philippe Nunes wrote:
> The parameter wowlan_triggers is a global string and is not recognised
> if it is embraced with double-quotes.

Thanks, applied.

Patch

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)