mirror of https://github.com/ARMmbed/mbed-os.git
Filter out advertising reports for unresolved addresses if required
parent
6a2ffaeac0
commit
926efa4018
|
@ -1093,6 +1093,16 @@ void GenericGap::on_advertising_report(const pal::GapAdvertisingReportEvent& e)
|
||||||
for (size_t i = 0; i < e.size(); ++i) {
|
for (size_t i = 0; i < e.size(); ++i) {
|
||||||
pal::GapAdvertisingReportEvent::advertising_t advertising = e[i];
|
pal::GapAdvertisingReportEvent::advertising_t advertising = e[i];
|
||||||
|
|
||||||
|
// Check if the address hasn't been resolved
|
||||||
|
if(_central_privacy_configuration.resolution_strategy == ResolutionStrategy::RESOLVE_AND_FILTER)
|
||||||
|
{
|
||||||
|
if(advertising.address_type == connection_peer_address_type_t::RANDOM_ADDRESS)
|
||||||
|
{
|
||||||
|
// Filter it out
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
processAdvertisementReport(
|
processAdvertisementReport(
|
||||||
advertising.address.data(),
|
advertising.address.data(),
|
||||||
advertising.rssi,
|
advertising.rssi,
|
||||||
|
|
Loading…
Reference in New Issue