Added debug_timestamp option to Windows registry
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 2 Oct 2008 13:26:18 +0000 (16:26 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 2 Oct 2008 13:26:18 +0000 (16:26 +0300)
wpa_supplicant/main_winsvc.c
wpa_supplicant/win_example.reg

index b5be9fc..6d416fd 100644 (file)
@@ -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) {
index 791b870..0d1f25c 100755 (executable)
@@ -3,6 +3,7 @@ REGEDIT4
 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant]\r
 "debug_level"=dword:00000000\r
 "debug_show_keys"=dword:00000001\r
+"debug_timestamp"=dword:00000000\r
 "debug_use_file"=dword:00000000\r
 \r
 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs]\r