Skip to content

Commit ebbaf34

Browse files
Allow net_if only with Ethernet or Wifi connection
Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com>
1 parent 4def860 commit ebbaf34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/Zephyr/ConfigurationManagerImpl.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
#include <platform/Zephyr/ZephyrConfig.h>
3232

3333
#include "InetUtils.h"
34+
35+
#if (CHIP_DEVICE_CONFIG_ENABLE_WIFI) || (CHIP_DEVICE_CONFIG_ENABLE_ETHERNET)
3436
#include <zephyr/net/net_if.h>
37+
#endif
3538

3639
#include <lib/support/CodeUtils.h>
3740
#include <lib/support/logging/CHIPLogging.h>

0 commit comments

Comments
 (0)