fix advertising report not terminating early for unwanted reports

pull/13779/head
Paul Szczeanek 2020-10-19 14:20:06 +01:00
parent 2c906110fc
commit 934e111107
1 changed files with 6 additions and 4 deletions

View File

@ -2658,10 +2658,9 @@ void Gap::signal_advertising_report(
delete _connect_to_host_resolved_address_parameters;
_connect_to_host_resolved_address_parameters = nullptr;
}
} else {
_event_handler->onAdvertisingReport(
event
);
/* do not report it as this was a scan run for connection purposes */
return;
}
} else {
/* check if there already is a RPA like that in the list of other pending reports */
@ -2687,6 +2686,9 @@ void Gap::signal_advertising_report(
}
}
}
/* we need to wait until the address is resolved before reporting it */
return;
}
#else
/* filter out unresolved address if at least one bond exists */