Skip to content

Commit cfe325c

Browse files
committed
BLE NRF51: Do not filter advertising packet in peripheral if the device as no bond.
1 parent ba61c09 commit cfe325c

File tree

1 file changed

+3
-1
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF51/source

1 file changed

+3
-1
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF51/source/nRF5xGap.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,9 @@ void nRF5xGap::on_advertising_packet(const ble_gap_evt_adv_report_t &evt) {
13521352
if (entry) {
13531353
peer_address = entry->peer_identity_address.data();
13541354
peer_addr_type = convert_identity_address(entry->peer_identity_address_type);
1355-
} else if (_central_privacy_configuration.resolution_strategy != CentralPrivacyConfiguration_t::RESOLVE_AND_FORWARD) {
1355+
} else if (_central_privacy_configuration.resolution_strategy == CentralPrivacyConfiguration_t::RESOLVE_AND_FORWARD ||
1356+
get_sm().get_resolving_list().size() == 0
1357+
) {
13561358
peer_addr_type = convert_nordic_address(evt.peer_addr.addr_type);
13571359
} else {
13581360
// filter out the packet.

0 commit comments

Comments
 (0)