From 960909567e0f3ef49556e35cb3d919621af46676 Mon Sep 17 00:00:00 2001 From: bhmanda Date: Sat, 14 Dec 2024 02:16:34 +0530 Subject: [PATCH] Delaying NCP sleep till wifi connection --- examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp b/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp index 585a109889..123a2a4fa1 100644 --- a/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp +++ b/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp @@ -170,13 +170,17 @@ bool ApplicationSleepManager::ProcessKeychainEdgeCase() void ApplicationSleepManager::OnEnterActiveMode() { mIsInActiveMode = true; +#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) mWifiSleepManager->VerifyAndTransitionToLowPowerMode(); +#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) } void ApplicationSleepManager::OnEnterIdleMode() { mIsInActiveMode = false; +#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) mWifiSleepManager->VerifyAndTransitionToLowPowerMode(); +#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) } void ApplicationSleepManager::OnTransitionToIdle()