diff mbox

[OpenWrt-Devel] wpa_supplicant: Add Write Log to File Support

Message ID 1465066023-10381-1-git-send-email-hutamanzi@gmail.com
State Changes Requested
Headers show

Commit Message

Bima Hutama June 4, 2016, 6:47 p.m. UTC
-Change:
	Enable CONFIG_DEBUG_FILE=y

  -Description:
	Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt).
	By invoking "-f <directory path>" in wpa_supplicant we can enable write-debug-to-file
	without running wpa_supplicant on foreground. It makes debugging easier than running
	wpa_supplicant in foreground and add "&" at the end of code which invokes wpa_supplicant
	and distorting the wpa_supplicant exit status $?.

Signed-off-by: Bima Hutama <hutamanzi@gmail.com>
---
 package/network/services/hostapd/files/wpa_supplicant-full.config | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/package/network/services/hostapd/files/wpa_supplicant-full.config b/package/network/services/hostapd/files/wpa_supplicant-full.config
index 7685606..b11fffa 100644
--- a/package/network/services/hostapd/files/wpa_supplicant-full.config
+++ b/package/network/services/hostapd/files/wpa_supplicant-full.config
@@ -379,7 +379,11 @@  CONFIG_INTERNAL_LIBTOMMATH_FAST=y
 CONFIG_IEEE80211R=y
 
 # Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt)
-#CONFIG_DEBUG_FILE=y
+# By invoking "-f <directory path>" we can enable write-debug-to-file without
+# running wpa_supplicant on foreground. It makes debugging easier than running
+# wpa_supplicant in foreground and add "&" at the end of the code which invokes
+# wpa_supplicant and distorting the wpa_supplicant exit status.
+CONFIG_DEBUG_FILE=y
 
 # Enable privilege separation (see README 'Privilege separation' for details)
 #CONFIG_PRIVSEP=y