aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-10-02 13:26:18 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-02 13:26:18 (GMT)
commit99a10f8d2c00a36ec67530f9162cd5ae5e3e7816 (patch)
tree583070e3bb83652c5380b4162e899b8f1917b11e /wpa_supplicant
parentb6310a6f4745859b9023111f3bb25455c8128114 (diff)
downloadhostap-99a10f8d2c00a36ec67530f9162cd5ae5e3e7816.zip
hostap-99a10f8d2c00a36ec67530f9162cd5ae5e3e7816.tar.gz
hostap-99a10f8d2c00a36ec67530f9162cd5ae5e3e7816.tar.bz2
Added debug_timestamp option to Windows registry
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/main_winsvc.c7
-rwxr-xr-xwpa_supplicant/win_example.reg1
2 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/main_winsvc.c b/wpa_supplicant/main_winsvc.c
index b5be9fc..6d416fd 100644
--- a/wpa_supplicant/main_winsvc.c
+++ b/wpa_supplicant/main_winsvc.c
@@ -162,6 +162,13 @@ static int wpa_supplicant_thread(void)
}
buflen = sizeof(val);
+ ret = RegQueryValueEx(hk, TEXT("debug_timestamp"), NULL, NULL,
+ (LPBYTE) &val, &buflen);
+ if (ret == ERROR_SUCCESS && buflen == sizeof(val)) {
+ params.wpa_debug_timestamp = val;
+ }
+
+ buflen = sizeof(val);
ret = RegQueryValueEx(hk, TEXT("debug_use_file"), NULL, NULL,
(LPBYTE) &val, &buflen);
if (ret == ERROR_SUCCESS && buflen == sizeof(val) && val) {
diff --git a/wpa_supplicant/win_example.reg b/wpa_supplicant/win_example.reg
index 791b870..0d1f25c 100755
--- a/wpa_supplicant/win_example.reg
+++ b/wpa_supplicant/win_example.reg
@@ -3,6 +3,7 @@ REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant]
"debug_level"=dword:00000000
"debug_show_keys"=dword:00000001
+"debug_timestamp"=dword:00000000
"debug_use_file"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs]