Skip to content

Commit c5963cd

Browse files
krish2718rlubos
authored andcommitted
[nrf noup] modules: hostap: Fix NS build
NS builds need to use PSA for entropy same as 54L. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> (cherry picked from commit 34010be)
1 parent 9d24a57 commit c5963cd

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

modules/hostap/Kconfig

+21-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ config WIFI_NM_WPA_SUPPLICANT_WEP
109109

110110
choice WIFI_NM_WPA_SUPPLICANT_CRYPTO_BACKEND
111111
prompt "WPA supplicant crypto implementation"
112-
default WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS_PSA if SOC_SERIES_NRF54LX
112+
default WIFI_NM_WPA_SUPPLICANT_CRYPTO_LEGACY_NCS_PSA if SOC_SERIES_NRF54LX || BUILD_WITH_TFM
113113
default WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT_LEGACY_NCS
114114
help
115115
Select the crypto implementation to use for WPA supplicant.
@@ -231,6 +231,26 @@ config WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT_LEGACY_NCS
231231
select MBEDTLS_CIPHER_PADDING_PKCS7
232232
select MBEDTLS_PKCS5_C
233233

234+
config WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT_LEGACY_NCS_PSA
235+
bool "Legacy Crypto support for WiFi using nRF security"
236+
select MBEDTLS
237+
select NRF_SECURITY
238+
select PSA_WANT_GENERATE_RANDOM
239+
select MBEDTLS_CIPHER_MODE_CBC
240+
select MBEDTLS_CIPHER_MODE_CTR
241+
select MBEDTLS_LEGACY_CRYPTO_C
242+
select MBEDTLS_SHA1_C
243+
select MBEDTLS_ECP_C
244+
select MBEDTLS_CTR_DRBG_C
245+
select MBEDTLS_PK_C
246+
select MBEDTLS_PKCS5_C
247+
select MBEDTLS_PK_PARSE_C
248+
select MBEDTLS_CMAC_C
249+
select MBEDTLS_CIPHER_PADDING_PKCS7
250+
select MBEDTLS_PK_WRITE_C
251+
select MBEDTLS_KEY_EXCHANGE_ALL_ENABLED
252+
select MBEDTLS_ENTROPY_C
253+
234254
config WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT_NCS_PSA
235255
bool "PSA Crypto support for WiFi WPA2 using nRF security"
236256
select MBEDTLS

0 commit comments

Comments
 (0)