From 40b6813dcf4c89e7c21eb5d9936e92757d032e9e Mon Sep 17 00:00:00 2001 From: Donatien Garnier Date: Fri, 11 May 2018 18:52:27 +0100 Subject: [PATCH] Fix wrong use of DmLlPrivEnabled() --- .../targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp index 410287bd5f..2adb350699 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp @@ -778,7 +778,7 @@ struct CordioSecurityManager::PrivacyAddDevToResListControlBlock : CordioSecurit virtual void execute() { // Check whether we need to enable resolution in LL - bool enable_ll_resolving = DmLlPrivEnabled(); + bool enable_ll_resolving = !DmLlPrivEnabled(); // Execute command DmPrivAddDevToResList(_peer_identity_address_type.value(), _peer_identity_address.data(), _peer_irk.data(), DmSecGetLocalIrk(), enable_ll_resolving, 0);