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

Bima Hutama hutamanzi at gmail.com
Sat Jun 4 14:47:02 EDT 2016


  -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 at gmail.com>
---
 package/network/services/hostapd/files/wpa_supplicant-full.config | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list