Skip to content

Commit 5216a9a

Browse files
paul-szczepanek-armpan-
authored andcommitted
only apply policy if privacy enabled
1 parent d436038 commit 5216a9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,9 +2401,11 @@ void Gap::signal_connection_complete(
24012401
}
24022402
}
24032403
#else
2404+
#if BLE_FEATURE_PRIVACY
24042405
if (!apply_peripheral_privacy_connection_policy(event)) {
24052406
return;
24062407
}
2408+
#endif // BLE_FEATURE_PRIVACY
24072409
report_internal_connection_complete(event);
24082410
_event_handler->onConnectionComplete(event);
24092411
#endif // BLE_FEATURE_PRIVACY && BLE_GAP_HOST_BASED_PRIVATE_ADDRESS_RESOLUTION

0 commit comments

Comments
 (0)