File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
connectivity/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2658,10 +2658,9 @@ void Gap::signal_advertising_report(
2658
2658
delete _connect_to_host_resolved_address_parameters;
2659
2659
_connect_to_host_resolved_address_parameters = nullptr ;
2660
2660
}
2661
- } else {
2662
- _event_handler->onAdvertisingReport (
2663
- event
2664
- );
2661
+
2662
+ /* do not report it as this was a scan run for connection purposes */
2663
+ return ;
2665
2664
}
2666
2665
} else {
2667
2666
/* 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(
2687
2686
}
2688
2687
}
2689
2688
}
2689
+
2690
+ /* we need to wait until the address is resolved before reporting it */
2691
+ return ;
2690
2692
}
2691
2693
#else
2692
2694
/* filter out unresolved address if at least one bond exists */
You can’t perform that action at this time.
0 commit comments