hostap: fix build error when WPS enabled

Fix build error of multiple definition of `dh5_init' in
crypto_mbedtls_alt.c when WPS enabled.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2024-10-21 18:52:26 +09:00 committed by Henrik Brix Andersen
parent 7bc316ba3c
commit 6f2517807e
1 changed files with 7 additions and 0 deletions

View File

@ -331,8 +331,15 @@ zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_WPS
${HOSTAP_SRC_BASE}/wps/wps_enrollee.c
${HOSTAP_SRC_BASE}/wps/wps_registrar.c
${HOSTAP_SRC_BASE}/crypto/dh_groups.c
)
if(NOT CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT)
# dh_group5 is only needed if we are not using mbedtls, as mbedtls provides
# its own definition
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_WPS
${HOSTAP_SRC_BASE}/crypto/dh_group5.c
)
endif()
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P
CONFIG_P2P