From 99a10f8d2c00a36ec67530f9162cd5ae5e3e7816 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 2 Oct 2008 16:26:18 +0300 Subject: [PATCH] Added debug_timestamp option to Windows registry --- wpa_supplicant/main_winsvc.c | 7 +++++++ wpa_supplicant/win_example.reg | 1 + 2 files changed, 8 insertions(+) diff --git a/wpa_supplicant/main_winsvc.c b/wpa_supplicant/main_winsvc.c index b5be9fc1f..6d416fd41 100644 --- a/wpa_supplicant/main_winsvc.c +++ b/wpa_supplicant/main_winsvc.c @@ -161,6 +161,13 @@ static int wpa_supplicant_thread(void) params.wpa_debug_show_keys = val; } + 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); diff --git a/wpa_supplicant/win_example.reg b/wpa_supplicant/win_example.reg index 791b870f0..0d1f25c39 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]