From 4115df1e632392dc7d8a56c15d4197cc01aba374 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous <84793247+mkardous-silabs@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:43:32 -0500 Subject: [PATCH] Fix typo for ConfigurePowerSave Co-authored-by: lpbeliveau-silabs <112982107+lpbeliveau-silabs@users.noreply.github.com> --- src/platform/silabs/wifi/WifiInterfaceAbstraction.h | 4 ++-- src/platform/silabs/wifi/icd/WifiSleepManager.cpp | 10 +++++----- src/platform/silabs/wifi/rs911x/WifiInterface.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/platform/silabs/wifi/WifiInterfaceAbstraction.h b/src/platform/silabs/wifi/WifiInterfaceAbstraction.h index 4ebfdca23d..4f3744f8d0 100644 --- a/src/platform/silabs/wifi/WifiInterfaceAbstraction.h +++ b/src/platform/silabs/wifi/WifiInterfaceAbstraction.h @@ -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 */ diff --git a/src/platform/silabs/wifi/icd/WifiSleepManager.cpp b/src/platform/silabs/wifi/icd/WifiSleepManager.cpp index 92fdae1dc0..37627e69b3 100644 --- a/src/platform/silabs/wifi/icd/WifiSleepManager.cpp +++ b/src/platform/silabs/wifi/icd/WifiSleepManager.cpp @@ -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 } @@ -102,7 +102,7 @@ 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 @@ -110,7 +110,7 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode() 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.")); @@ -121,7 +121,7 @@ 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, @@ -129,7 +129,7 @@ CHIP_ERROR WifiSleepManager::VerifyAndTransitionToLowPowerMode() } } #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 diff --git a/src/platform/silabs/wifi/rs911x/WifiInterface.cpp b/src/platform/silabs/wifi/rs911x/WifiInterface.cpp index 026df801c0..e78507c4f1 100644 --- a/src/platform/silabs/wifi/rs911x/WifiInterface.cpp +++ b/src/platform/silabs/wifi/rs911x/WifiInterface.cpp @@ -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