From cea43972e04cdee9256b32c6f6b89421061a8e87 Mon Sep 17 00:00:00 2001 From: Chirag Bansal Date: Thu, 27 Apr 2023 12:48:03 +0530 Subject: [PATCH] adding lock and unlock for window app --- 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