From 3936057f302cf4d6f14e2e36410b718ecd25e880 Mon Sep 17 00:00:00 2001 From: Junior Martinez <67972863+jmartinez-silabs@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:51:47 -0400 Subject: [PATCH] fix wifi ncp icd build. (#28632) --- examples/platform/silabs/efr32/rs911x/rsi_if.c | 4 ++-- examples/platform/silabs/efr32/rs911x/wfx_rsi.h | 4 ++-- examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c | 4 ++-- src/platform/silabs/CHIPDevicePlatformConfig.h | 4 ++-- src/platform/silabs/efr32/wifi/wfx_host_events.h | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/platform/silabs/efr32/rs911x/rsi_if.c b/examples/platform/silabs/efr32/rs911x/rsi_if.c index 900e07a42ce235..a2e0f563727fbe 100644 --- a/examples/platform/silabs/efr32/rs911x/rsi_if.c +++ b/examples/platform/silabs/efr32/rs911x/rsi_if.c @@ -184,7 +184,7 @@ int32_t wfx_rsi_disconnect() return status; } -#if CHIP_CONFIG_ENABLE_ICD_SERVER +#if SL_ICD_ENABLED /****************************************************************** * @fn wfx_rsi_power_save() * @brief @@ -215,7 +215,7 @@ int32_t wfx_rsi_power_save() SILABS_LOG("Powersave Config Success"); return status; } -#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */ +#endif /* SL_ICD_ENABLED */ /****************************************************************** * @fn wfx_rsi_join_cb(uint16_t status, const uint8_t *buf, const uint16_t len) diff --git a/examples/platform/silabs/efr32/rs911x/wfx_rsi.h b/examples/platform/silabs/efr32/rs911x/wfx_rsi.h index d793244aa23cca..2275549ef7af41 100644 --- a/examples/platform/silabs/efr32/rs911x/wfx_rsi.h +++ b/examples/platform/silabs/efr32/rs911x/wfx_rsi.h @@ -90,9 +90,9 @@ int32_t wfx_rsi_get_ap_info(wfx_wifi_scan_result_t * ap); int32_t wfx_rsi_get_ap_ext(wfx_wifi_scan_ext_t * extra_info); int32_t wfx_rsi_reset_count(); int32_t wfx_rsi_disconnect(); -#if CHIP_CONFIG_ENABLE_ICD_SERVER +#if SL_ICD_ENABLED int32_t wfx_rsi_power_save(); -#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */ +#endif /* SL_ICD_ENABLED */ #ifdef __cplusplus } diff --git a/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c b/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c index a448f3a0a45667..4b75a7b0c30411 100644 --- a/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c +++ b/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c @@ -193,7 +193,7 @@ sl_status_t wfx_connect_to_ap(void) return SL_STATUS_OK; } -#if CHIP_CONFIG_ENABLE_ICD_SERVER +#if SL_ICD_ENABLED /********************************************************************* * @fn sl_status_t wfx_power_save() * @brief @@ -210,7 +210,7 @@ sl_status_t wfx_power_save() } return SL_STATUS_OK; } -#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */ +#endif /* SL_ICD_ENABLED */ /********************************************************************* * @fn void wfx_setup_ip6_link_local(sl_wfx_interface_t whichif) diff --git a/src/platform/silabs/CHIPDevicePlatformConfig.h b/src/platform/silabs/CHIPDevicePlatformConfig.h index c51a923367ffaf..0ba1cecc6bef31 100644 --- a/src/platform/silabs/CHIPDevicePlatformConfig.h +++ b/src/platform/silabs/CHIPDevicePlatformConfig.h @@ -104,10 +104,10 @@ #define CHIP_DEVICE_CONFIG_ENABLE_IPV4 0 #endif /* CHIP_DEVICE_CONFIG_ENABLE_IPV4 */ -#if CHIP_CONFIG_ENABLE_ICD_SERVER +#if SL_ICD_ENABLED #define CHIP_DEVICE_CONFIG_ICD_SLOW_POLL_INTERVAL chip::System::Clock::Milliseconds32(300) #define CHIP_DEVICE_CONFIG_ICD_FAST_POLL_INTERVAL chip::System::Clock::Milliseconds32(10) -#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */ +#endif /* SL_ICD_ENABLED */ #endif /* SL_WIFI */ diff --git a/src/platform/silabs/efr32/wifi/wfx_host_events.h b/src/platform/silabs/efr32/wifi/wfx_host_events.h index 5fae93e82053f0..ab722f649532cc 100644 --- a/src/platform/silabs/efr32/wifi/wfx_host_events.h +++ b/src/platform/silabs/efr32/wifi/wfx_host_events.h @@ -353,9 +353,9 @@ void wfx_ipv6_notify(int got_ip); #ifdef RS911X_WIFI /* RSI Power Save */ -#if CHIP_CONFIG_ENABLE_ICD_SERVER +#if SL_ICD_ENABLED sl_status_t wfx_power_save(); -#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER */ +#endif /* SL_ICD_ENABLED */ /* RSI for LWIP */ void * wfx_rsi_alloc_pkt(void); void wfx_rsi_pkt_add_data(void * p, uint8_t * buf, uint16_t len, uint16_t off);