Skip to content

Commit

Permalink
fixing the build for the rs9116
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Aug 29, 2024
1 parent 9b8b81d commit 0f91778
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions examples/platform/silabs/wifi/wfx_rsi_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ sl_status_t wfx_connect_to_ap(void)
}

#if SL_ICD_ENABLED
#if SLI_SI917
/*********************************************************************
* @fn sl_status_t wfx_power_save()
* @brief
Expand All @@ -208,12 +209,22 @@ sl_status_t wfx_connect_to_ap(void)
***********************************************************************/
sl_status_t wfx_power_save(rsi_power_save_profile_mode_t sl_si91x_ble_state, sl_si91x_performance_profile_t sl_si91x_wifi_state)
{
if (wfx_rsi_power_save(sl_si91x_ble_state, sl_si91x_wifi_state) != SL_STATUS_OK)
{
return SL_STATUS_FAIL;
}
return SL_STATUS_OK;
return (wfx_rsi_power_save(sl_si91x_ble_state, sl_si91x_wifi_state) ? SL_STATUS_FAIL : SL_STATUS_OK);
}
#else // For RS9116
/*********************************************************************
* @fn sl_status_t wfx_power_save()
* @brief
* Implements the power save in sleepy application
* @param[in] None
* @return SL_STATUS_OK if successful,
* SL_STATUS_FAIL otherwise
***********************************************************************/
sl_status_t wfx_power_save()
{
return (wfx_rsi_power_save() ? SL_STATUS_FAIL : SL_STATUS_OK);
}
#endif /* SLI_SI917 */
#endif /* SL_ICD_ENABLED */

/*********************************************************************
Expand Down

0 comments on commit 0f91778

Please sign in to comment.