fix wifi ncp icd build. (#28632)

diff --git a/examples/platform/silabs/efr32/rs911x/rsi_if.c b/examples/platform/silabs/efr32/rs911x/rsi_if.c
index 900e07a..a2e0f56 100644
--- a/examples/platform/silabs/efr32/rs911x/rsi_if.c
+++ b/examples/platform/silabs/efr32/rs911x/rsi_if.c
@@ -184,7 +184,7 @@
     return status;
 }
 
-#if CHIP_CONFIG_ENABLE_ICD_SERVER
+#if SL_ICD_ENABLED
 /******************************************************************
  * @fn   wfx_rsi_power_save()
  * @brief
@@ -215,7 +215,7 @@
     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 d793244..2275549 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_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 a448f3a..4b75a7b 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 @@
     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 @@
     }
     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 c51a923..0ba1cec 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 5fae93e..ab722f6 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 @@
 
 #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);