only apply policy if privacy enabled

pull/13759/head
Paul Szczeanek 2020-09-28 16:55:17 +01:00 committed by Vincent Coubard
parent d4360383e1
commit 5216a9aa8c
1 changed files with 2 additions and 0 deletions

View File

@ -2401,9 +2401,11 @@ void Gap::signal_connection_complete(
}
}
#else
#if BLE_FEATURE_PRIVACY
if (!apply_peripheral_privacy_connection_policy(event)) {
return;
}
#endif // BLE_FEATURE_PRIVACY
report_internal_connection_complete(event);
_event_handler->onConnectionComplete(event);
#endif // BLE_FEATURE_PRIVACY && BLE_GAP_HOST_BASED_PRIVATE_ADDRESS_RESOLUTION