Skip to content

Commit d436038

Browse files
paul-szczepanek-armpan-
authored andcommitted
do not reject conn if no bond
1 parent b67230c commit d436038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,10 @@ bool Gap::apply_peripheral_privacy_connection_policy(
24312431

24322432
switch (_peripheral_privacy_configuration.resolution_strategy) {
24332433
case peripheral_privacy_configuration_t::REJECT_NON_RESOLVED_ADDRESS:
2434+
/* if there is no bond then allow unresolved addresses */
2435+
if (_address_registry.read_resolving_list_size() == 0) {
2436+
return true;
2437+
}
24342438
_pal_gap.disconnect(
24352439
connection_handle,
24362440
local_disconnection_reason_t::AUTHENTICATION_FAILURE

0 commit comments

Comments
 (0)