Skip to content

Commit 86044b5

Browse files
krish2718jukkar
authored andcommitted
[noup] zephyr: Fix build error
commit f72b2d4 removed the guard causing build issues when AP is enabled using wpa_supplicant. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent fff80bb commit 86044b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ap/hostapd.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -2697,9 +2697,11 @@ static int hostapd_setup_interface_complete_sync(struct hostapd_iface *iface,
26972697
hostapd_neighbor_set_own_report(iface->bss[j]);
26982698

26992699
#ifdef __ZEPHYR__
2700-
hostapd_send_wifi_mgmt_ap_status(iface,
2701-
NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT,
2702-
WIFI_STATUS_AP_SUCCESS);
2700+
if (IS_ENABLED(CONFIG_WIFI_NM_HOSTAPD_AP)) {
2701+
hostapd_send_wifi_mgmt_ap_status(iface,
2702+
NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT,
2703+
WIFI_STATUS_AP_SUCCESS);
2704+
}
27032705
#endif /* __ZEPHYR__ */
27042706
if (iface->interfaces && iface->interfaces->count > 1)
27052707
ieee802_11_set_beacons(iface);

0 commit comments

Comments
 (0)