From 809a32d2e1db061f8e693ea4faeca0bbf43b8a9c Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 15 Jul 2025 13:32:26 +0530 Subject: [PATCH] [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 --- src/utils/wpa_debug_zephyr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/wpa_debug_zephyr.c b/src/utils/wpa_debug_zephyr.c index e1db266ece..eabcedbf6e 100644 --- a/src/utils/wpa_debug_zephyr.c +++ b/src/utils/wpa_debug_zephyr.c @@ -18,7 +18,7 @@ LOG_MODULE_REGISTER(wpa_supp, CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL); int wpa_debug_level = MSG_INFO; -int wpa_debug_show_keys; +int wpa_debug_show_keys = IS_ENABLED(CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_SHOW_KEYS); int wpa_debug_timestamp; #ifndef CONFIG_NO_STDOUT_DEBUG