diff --git a/modules/hostap/CMakeLists.txt b/modules/hostap/CMakeLists.txt index c9dca7ed8ff..3e0bc2ddc4c 100644 --- a/modules/hostap/CMakeLists.txt +++ b/modules/hostap/CMakeLists.txt @@ -519,9 +519,12 @@ zephyr_library_compile_definitions_ifdef(CONFIG_EAP_IKEV2 EAP_IKEV2 ) +if (CONFIG_EAP_SIM OR CONFIG_EAP_AKA) + zephyr_library_sources(${HOSTAP_SRC_BASE}/eap_common/eap_sim_common.c) +endif() + zephyr_library_sources_ifdef(CONFIG_EAP_SIM ${HOSTAP_SRC_BASE}/eap_peer/eap_sim.c - ${HOSTAP_SRC_BASE}/eap_common/eap_sim_common.c ) zephyr_library_compile_definitions_ifdef(CONFIG_EAP_SIM