Skip to content

Commit 0953ea0

Browse files
krish2718kartben
authored andcommitted
modules: hostap: Fix AP and no MBO build
Add check for MBO feature before including the source file. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 055c4a0 commit 0953ea0

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
@@ -212,12 +212,15 @@ zephyr_library_sources(
212212
${HOSTAP_SRC_BASE}/eap_server/eap_server_identity.c
213213
${HOSTAP_SRC_BASE}/eap_server/eap_server_methods.c
214214
${HOSTAP_SRC_BASE}/eapol_auth/eapol_auth_sm.c
215-
${HOSTAP_SRC_BASE}/ap/mbo_ap.c
216215
${HOSTAP_SRC_BASE}/ap/ctrl_iface_ap.c
217216
${HOSTAP_SRC_BASE}/utils/crc32.c
218217
${HOSTAP_SRC_BASE}/utils/ip_addr.c
219218
)
220219
220+
if (CONFIG_WIFI_NM_WPA_SUPPLICANT_MBO)
221+
zephyr_library_sources(${HOSTAP_SRC_BASE}/ap/mbo_ap.c)
222+
endif()
223+
221224
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_11AX
222225
${HOSTAP_SRC_BASE}/ap/ieee802_11_he.c
223226
)

0 commit comments

Comments
 (0)