From 960909567e0f3ef49556e35cb3d919621af46676 Mon Sep 17 00:00:00 2001 From: bhmanda Date: Sat, 14 Dec 2024 02:16:34 +0530 Subject: [PATCH 1/2] 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() From 6e3476559a94814b50d4cb05bcbdbc598e26403f Mon Sep 17 00:00:00 2001 From: bhmanda Date: Mon, 16 Dec 2024 22:26:13 +0530 Subject: [PATCH 2/2] Added comment to rerun restyler --- examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp b/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp index 123a2a4fa1..98aa460885 100644 --- a/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp +++ b/examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp @@ -170,6 +170,7 @@ bool ApplicationSleepManager::ProcessKeychainEdgeCase() void ApplicationSleepManager::OnEnterActiveMode() { mIsInActiveMode = true; +// TEMP-fix: Added SLI_SI91X_MCU_INTERFACE to delay 917 NCP sleep till wifi-connection #if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) mWifiSleepManager->VerifyAndTransitionToLowPowerMode(); #endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) @@ -178,6 +179,7 @@ void ApplicationSleepManager::OnEnterActiveMode() void ApplicationSleepManager::OnEnterIdleMode() { mIsInActiveMode = false; +// TEMP-fix: Added SLI_SI91X_MCU_INTERFACE to delay 917 NCP sleep till wifi-connection #if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) mWifiSleepManager->VerifyAndTransitionToLowPowerMode(); #endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)