From 10680834939a392d0b1e4e9e47c204569448da4f Mon Sep 17 00:00:00 2001 From: chirag-silabs <100861685+chirag-silabs@users.noreply.github.com> Date: Thu, 27 Apr 2023 20:41:06 +0530 Subject: [PATCH] adding lock and unlock for window app (#26276) --- examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp | 2 ++ examples/window-app/silabs/efr32/src/WindowAppImpl.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp b/examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp index 2d65b5a2117451..f260d858412a47 100644 --- a/examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp +++ b/examples/window-app/silabs/SiWx917/src/WindowAppImpl.cpp @@ -167,7 +167,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter) } SILABS_LOG("APP: Done WiFi Init"); /* We will init server when we get IP */ + chip::DeviceLayer::PlatformMgr().LockChipStack(); sWiFiNetworkCommissioningInstance.Init(); + chip::DeviceLayer::PlatformMgr().UnlockChipStack(); /* added for commissioning with wifi */ #endif diff --git a/examples/window-app/silabs/efr32/src/WindowAppImpl.cpp b/examples/window-app/silabs/efr32/src/WindowAppImpl.cpp index 734a4b4bc5d1a3..e2032125538076 100644 --- a/examples/window-app/silabs/efr32/src/WindowAppImpl.cpp +++ b/examples/window-app/silabs/efr32/src/WindowAppImpl.cpp @@ -168,7 +168,9 @@ void WindowAppImpl::OnTaskCallback(void * parameter) } SILABS_LOG("APP: Done WiFi Init"); /* We will init server when we get IP */ + chip::DeviceLayer::PlatformMgr().LockChipStack(); sWiFiNetworkCommissioningInstance.Init(); + chip::DeviceLayer::PlatformMgr().UnlockChipStack(); /* added for commisioning with wifi */ #endif