Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf noup] zephyr: Start DHCP client only in station mode
Browse files Browse the repository at this point in the history
DHCP client is needed only when the device is running in
station mode. Enable this only when station mode is enabled.

Signed-off-by: Ravi Dondaputi <[email protected]>
  • Loading branch information
rado17 committed Apr 4, 2024
1 parent 51873bb commit 33a0933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/driver_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 4 additions & 0 deletions wpa_supplicant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33a0933

Please sign in to comment.