Skip to content

Commit 7fda615

Browse files
krish2718carlescufi
authored andcommitted
[noup] wpa_debug_zephyr: Initialize wpa_debug_show_keys from Kconfig option
Initialize the wpa_debug_show_keys variable based on the CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_SHOW_KEYS Kconfig option. This allows compile-time control of whether key material (passwords, encryption keys, etc.) is included in debug output, equivalent to the -K command line flag in wpa_supplicant. The option defaults to disabled for security reasons, as key material should never be logged in production systems. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent e7feee3 commit 7fda615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/wpa_debug_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
LOG_MODULE_REGISTER(wpa_supp, CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL);
1919

2020
int wpa_debug_level = MSG_INFO;
21-
int wpa_debug_show_keys;
21+
int wpa_debug_show_keys = IS_ENABLED(CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_SHOW_KEYS);
2222
int wpa_debug_timestamp;
2323

2424
#ifndef CONFIG_NO_STDOUT_DEBUG

0 commit comments

Comments
 (0)