do not reject conn if no bond

pull/13759/head
Paul Szczeanek 2020-09-28 16:16:52 +01:00 committed by Vincent Coubard
parent b67230cbdb
commit d4360383e1
1 changed files with 4 additions and 0 deletions

View File

@ -2431,6 +2431,10 @@ bool Gap::apply_peripheral_privacy_connection_policy(
switch (_peripheral_privacy_configuration.resolution_strategy) {
case peripheral_privacy_configuration_t::REJECT_NON_RESOLVED_ADDRESS:
/* if there is no bond then allow unresolved addresses */
if (_address_registry.read_resolving_list_size() == 0) {
return true;
}
_pal_gap.disconnect(
connection_handle,
local_disconnection_reason_t::AUTHENTICATION_FAILURE