Fix wrong use of DmLlPrivEnabled()

pull/6932/head
Donatien Garnier 2018-05-11 18:52:27 +01:00
parent 71bd30daf3
commit 40b6813dcf
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ struct CordioSecurityManager::PrivacyAddDevToResListControlBlock : CordioSecurit
virtual void execute() { virtual void execute() {
// Check whether we need to enable resolution in LL // Check whether we need to enable resolution in LL
bool enable_ll_resolving = DmLlPrivEnabled(); bool enable_ll_resolving = !DmLlPrivEnabled();
// Execute command // Execute command
DmPrivAddDevToResList(_peer_identity_address_type.value(), _peer_identity_address.data(), _peer_irk.data(), DmSecGetLocalIrk(), enable_ll_resolving, 0); DmPrivAddDevToResList(_peer_identity_address_type.value(), _peer_identity_address.data(), _peer_irk.data(), DmSecGetLocalIrk(), enable_ll_resolving, 0);