Skip to content

Commit

Permalink
fix wifi ncp icd build. (#28632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs authored and hnnajh committed Nov 6, 2023
1 parent a1f61a7 commit 3936057
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/platform/silabs/efr32/rs911x/rsi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions examples/platform/silabs/efr32/rs911x/wfx_rsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/efr32/wifi/wfx_host_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3936057

Please sign in to comment.