diff --git a/src/drivers/driver_zephyr.c b/src/drivers/driver_zephyr.c index 34c0ef162..46ce9eab0 100644 --- a/src/drivers/driver_zephyr.c +++ b/src/drivers/driver_zephyr.c @@ -1507,7 +1507,7 @@ static int wpa_drv_zep_set_supp_port(void *priv, authorized, if_ctx->bssid); -#ifdef CONFIG_NET_DHCPV4 +#if defined(CONFIG_STA) && defined(CONFIG_NET_DHCPV4) if (authorized) { net_dhcpv4_restart(iface); } diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index aa4faa246..bd5c52f7c 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -403,6 +403,10 @@ OBJS += wifi_display.o endif endif +ifdef CONFIG_STA +CFLAGS += -DCONFIG_STA +endif + ifdef CONFIG_PASN CFLAGS += -DCONFIG_PASN CFLAGS += -DCONFIG_PTKSA_CACHE