Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Silabs]Fix wifi ncp built as ICDs. #28632

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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