From a44823b80fbdc7c9f6071dfd20ec112c25af3838 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 20 Jul 2023 20:54:08 -0400 Subject: [PATCH] Revert "Cancel incomplete BLE connection when CloseAllBleConnections() is called (#27304)" This reverts commit ad5403e8e537612c2d2f903895642445d45d1e08. There are two issues: * https://github.com/project-chip/connectedhomeip/issues/27607 which has had no response for weeks. * https://github.com/project-chip/connectedhomeip/issues/28139 which breaks commissioning on Mac, and would break it on Linux if it implemented BLE connection cancellation. We need to sort out why CHIPDeviceController is canceling BLE connections when starting PASE over BLE (!). --- src/ble/BleLayer.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/ble/BleLayer.cpp b/src/ble/BleLayer.cpp index 57a8ca8dc0fdff..9109924ccd3754 100644 --- a/src/ble/BleLayer.cpp +++ b/src/ble/BleLayer.cpp @@ -308,13 +308,6 @@ void BleLayer::Shutdown() void BleLayer::CloseAllBleConnections() { - // Cancel any ongoing attempt to establish new BLE connection - CHIP_ERROR err = CancelBleIncompleteConnection(); - if (err != CHIP_NO_ERROR) - { - ChipLogError(Ble, "CancelBleIncompleteConnection() failed, err = %" CHIP_ERROR_FORMAT, err.Format()); - } - // Close and free all BLE end points. for (size_t i = 0; i < BLE_LAYER_NUM_BLE_ENDPOINTS; i++) {