From 1f0aa66f4e485aeb6bc1d5acc7269be366bb1995 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Wed, 9 Apr 2025 22:13:42 +0530 Subject: [PATCH] fix(wpa_supplicant): Disable fastpbkdf2 when s/w and h/w SHA1 is disabled --- components/wpa_supplicant/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/wpa_supplicant/CMakeLists.txt b/components/wpa_supplicant/CMakeLists.txt index 9a5f9a3bf3..fa3ca20c82 100644 --- a/components/wpa_supplicant/CMakeLists.txt +++ b/components/wpa_supplicant/CMakeLists.txt @@ -264,9 +264,12 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_IEEE80211W CONFIG_SHA256 CONFIG_NO_RADIUS - CONFIG_FAST_PBKDF2 ) +if(CONFIG_MBEDTLS_SHA1_C OR CONFIG_MBEDTLS_HARDWARE_SHA) + target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_FAST_PBKDF2) +endif() + if(CONFIG_ESP_WIFI_ENABLE_WPA3_SAE) target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_WPA3_SAE) endif()