From 031ca5cc9bf9dc8578420083ab97012878e9281b 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 51cfe9b863..2de8fd2eaf 100644 --- a/components/wpa_supplicant/CMakeLists.txt +++ b/components/wpa_supplicant/CMakeLists.txt @@ -260,9 +260,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()