Skip to content

Commit 8fbef54

Browse files
krish2718nordicjm
authored andcommitted
samples: wifi: sta: Fix Wi-Fi ready disabled build
Add a guard for the include file. There is a twister test for this, but as the is available in NCS it works, but in upstream this doesn't work as the include file is missing and hence throws a build error. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent ebb5c99 commit 8fbef54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/wifi/sta/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ LOG_MODULE_REGISTER(sta, CONFIG_LOG_DEFAULT_LEVEL);
2323
#include <zephyr/net/net_event.h>
2424
#include <zephyr/drivers/gpio.h>
2525

26+
#ifdef CONFIG_WIFI_READY_LIB
2627
#include <net/wifi_ready.h>
28+
#endif /* CONFIG_WIFI_READY_LIB */
2729

2830
#if defined(CONFIG_BOARD_NRF7002DK_NRF7001_NRF5340_CPUAPP) || \
2931
defined(CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP)

0 commit comments

Comments
 (0)