From b67230cbdb41097344e41d2aa12e6df1664565d5 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Mon, 28 Sep 2020 15:45:53 +0100 Subject: [PATCH] apply peripheral policy on ll privacy --- connectivity/FEATURE_BLE/source/generic/GapImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp index 74ad53d4bc..71b2e5247d 100644 --- a/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp +++ b/connectivity/FEATURE_BLE/source/generic/GapImpl.cpp @@ -2401,6 +2401,9 @@ void Gap::signal_connection_complete( } } #else + if (!apply_peripheral_privacy_connection_policy(event)) { + return; + } report_internal_connection_complete(event); _event_handler->onConnectionComplete(event); #endif // BLE_FEATURE_PRIVACY && BLE_GAP_HOST_BASED_PRIVATE_ADDRESS_RESOLUTION