Skip to content

Commit b1fcb67

Browse files
authored
Fix build failure with chip_enable_wifi = false (#10869)
1 parent 4a8159b commit b1fcb67

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/platform/Linux/CHIPDevicePlatformConfig.h

+5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
// ==================== Platform Adaptations ====================
2727

28+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
2829
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
2930
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
31+
#else
32+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
33+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
34+
#endif
3035

3136
#ifndef CHIP_DEVICE_CONFIG_ENABLE_THREAD
3237
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD CHIP_ENABLE_OPENTHREAD

src/platform/Linux/PlatformManagerImpl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <malloc.h>
3939
#include <net/if.h>
4040
#include <netinet/in.h>
41+
#include <signal.h>
4142
#include <unistd.h>
4243

4344
namespace chip {

src/platform/Tizen/CHIPDevicePlatformConfig.h

+5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@
2626

2727
// ==================== Platform Adaptations ====================
2828

29+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
2930
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
3031
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
32+
#else
33+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
34+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
35+
#endif
3136

3237
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD 0
3338

src/platform/android/CHIPDevicePlatformConfig.h

+5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
// ==================== Platform Adaptations ====================
2727

28+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
2829
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
2930
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 1
31+
#else
32+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
33+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
34+
#endif
3035

3136
#ifndef CHIP_DEVICE_CONFIG_ENABLE_THREAD
3237
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD CHIP_ENABLE_OPENTHREAD

0 commit comments

Comments
 (0)