From ec31999ec32b4aef7a3208aa66fed166e5c469d5 Mon Sep 17 00:00:00 2001 From: Mihai Ignat <50373067+mihai-ignat@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:05:54 +0300 Subject: [PATCH] [nxp fromtree] [nxp][platform][k32w] BLE force disconnect handler calls API to allow low power (#33167) (cherry picked from commit 745c17c) --- src/platform/nxp/k32w/common/BLEManagerCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/nxp/k32w/common/BLEManagerCommon.cpp b/src/platform/nxp/k32w/common/BLEManagerCommon.cpp index b532ddef7f207e..82942687931aaa 100644 --- a/src/platform/nxp/k32w/common/BLEManagerCommon.cpp +++ b/src/platform/nxp/k32w/common/BLEManagerCommon.cpp @@ -1075,6 +1075,10 @@ void BLEManagerCommon::HandleForceDisconnect() { ChipLogProgress(DeviceLayer, "Gap_Disconnect() failed."); } + +#if defined(chip_with_low_power) && (chip_with_low_power == 1) + PWR_AllowDeviceToSleep(); +#endif } /*******************************************************************************