Skip to content

Commit

Permalink
Fix typo for ConfigurePowerSave
Browse files Browse the repository at this point in the history
Co-authored-by: lpbeliveau-silabs <[email protected]>
  • Loading branch information
mkardous-silabs and lpbeliveau-silabs authored Nov 20, 2024
1 parent 2b0b232 commit 4115df1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/platform/silabs/wifi/WifiInterfaceAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ bool wfx_hw_ready(void);
#ifdef RS911X_WIFI // for RS9116, 917 NCP and 917 SoC
/* RSI Power Save */
#if (SLI_SI91X_MCU_INTERFACE | EXP_BOARD)
sl_status_t CofigurePowerSave(rsi_power_save_profile_mode_t sl_si91x_ble_state, sl_si91x_performance_profile_t sl_si91x_wifi_state,
sl_status_t ConfigurePowerSave(rsi_power_save_profile_mode_t sl_si91x_ble_state, sl_si91x_performance_profile_t sl_si91x_wifi_state,
uint32_t listenInterval);
#else
sl_status_t CofigurePowerSave();
sl_status_t ConfigurePowerSave();
#endif /* (SLI_SI91X_MCU_INTERFACE | EXP_BOARD) */
#endif /* RS911X_WIFI */

Expand Down
10 changes: 5 additions & 5 deletions src/platform/silabs/wifi/icd/WifiSleepManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CHIP_ERROR WifiSleepManager::RequestHighPerformance()
if (mHighPerformanceRequestCounter == 0)
{
#if SLI_SI917 // 917 SoC & NCP
VerifyOrReturnError(CofigurePowerSave(RSI_ACTIVE, HIGH_PERFORMANCE, 0) == SL_STATUS_OK, CHIP_ERROR_INTERNAL,
VerifyOrReturnError(ConfigurePowerSave(RSI_ACTIVE, HIGH_PERFORMANCE, 0) == SL_STATUS_OK, CHIP_ERROR_INTERNAL,
ChipLogError(DeviceLayer, "Failed to set Wi-FI configuration to HighPerformance"));
#endif // SLI_SI917
}
Expand Down Expand Up @@ -102,15 +102,15 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode()

if (!(wifiConfig.ssid[0] != 0) && !isCommissioningInProgress)
{
VerifyOrReturnError(CofigurePowerSave(RSI_SLEEP_MODE_8, DEEP_SLEEP_WITH_RAM_RETENTION, 0) != SL_STATUS_OK,
VerifyOrReturnError(ConfigurePowerSave(RSI_SLEEP_MODE_8, DEEP_SLEEP_WITH_RAM_RETENTION, 0) != SL_STATUS_OK,
CHIP_ERROR_INTERNAL, ChipLogError(DeviceLayer, "Failed to enable Deep Sleep."));
}
else
{

if (mCallbacks && mCallbacks->CanGoToLIBasedSleep())
{
VerifyOrReturnError(CofigurePowerSave(RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE,
VerifyOrReturnError(ConfigurePowerSave(RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE,
ICDConfigurationData::GetInstance().GetSlowPollingInterval().count()) !=
SL_STATUS_OK,
CHIP_ERROR_INTERNAL, ChipLogError(DeviceLayer, "Failed to enable to go to sleep."));
Expand All @@ -121,15 +121,15 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode()
else
{

VerifyOrReturnError(CofigurePowerSave(RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE, 0) != SL_STATUS_OK, CHIP_ERROR_INTERNAL,
VerifyOrReturnError(ConfigurePowerSave(RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE, 0) != SL_STATUS_OK, CHIP_ERROR_INTERNAL,
ChipLogError(DeviceLayer, "Failed to enable to go to sleep."));

VerifyOrReturnError(ConfigureBroadcastFilter(false), CHIP_ERROR_INTERNAL,
ChipLogError(DeviceLayer, "Failed to configure broadcasts filter."));
}
}
#elif RS911X_WIFI // rs9116
VerifyOrReturnError(CofigurePowerSave() != SL_STATUS_OK, CHIP_ERROR_INTERNAL,
VerifyOrReturnError(ConfigurePowerSave() != SL_STATUS_OK, CHIP_ERROR_INTERNAL,
ChipLogError(DeviceLayer, "Failed to enable to go to sleep."));
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/wifi/rs911x/WifiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,14 +926,14 @@ int32_t wfx_rsi_send_data(void * p, uint16_t len)

#if SL_ICD_ENABLED
/*********************************************************************
* @fn sl_status_t CofigurePowerSave(void)
* @fn sl_status_t ConfigurePowerSave(void)
* @brief
* Implements the power save in sleepy application
* @param[in] None
* @return SL_STATUS_OK if successful,
* SL_STATUS_FAIL otherwise
***********************************************************************/
sl_status_t CofigurePowerSave(void)
sl_status_t ConfigurePowerSave(void)
{
int32_t status;
#ifdef RSI_BLE_ENABLE
Expand Down

0 comments on commit 4115df1

Please sign in to comment.