Skip to content

Commit 298ebaf

Browse files
TjazVrackokartben
authored andcommitted
net: wifi: Fix CONFIG_EAP_TTLS not enabling all dependencies
CONFIG_EAP_TTLS now correctly adds all .c files it requires from hostap. Signed-off-by: Tjaž Vračko <[email protected]>
1 parent a8418c6 commit 298ebaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/hostap/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,16 @@ zephyr_library_compile_definitions_ifdef(CONFIG_EAP_GTC
432432
zephyr_library_sources_ifdef(CONFIG_EAP_MSCHAPV2
433433
${HOSTAP_SRC_BASE}/eap_peer/eap_mschapv2.c
434434
${HOSTAP_SRC_BASE}/eap_peer/mschapv2.c
435-
${HOSTAP_SRC_BASE}/eap_common/chap.c
436435
)
437436
438437
zephyr_library_compile_definitions_ifdef(CONFIG_EAP_MSCHAPV2
439438
EAP_MSCHAPv2
440439
)
441440
441+
if(CONFIG_EAP_TTLS OR CONFIG_EAP_MSCHAPV2)
442+
zephyr_library_sources(${HOSTAP_SRC_BASE}/eap_common/chap.c)
443+
endif()
444+
442445
zephyr_library_sources_ifdef(CONFIG_EAP_LEAP
443446
${HOSTAP_SRC_BASE}/eap_peer/eap_leap.c
444447
)

0 commit comments

Comments
 (0)