gap: fix mechanism to stop scanning if needed

This commit is contained in:
Matthias Ringwald 2020-08-19 10:59:01 +02:00
parent 05002aec5b
commit 2d5c2a2746

View File

@ -3643,7 +3643,7 @@ static bool hci_run_general_gap_le(void){
// - whitelist change required but used for scanning
bool scanning_uses_whitelist = (hci_stack->le_scan_filter_policy & 1) == 1;
if ((hci_stack->le_scanning_param_update) || !hci_stack->le_scanning_enabled || scanning_uses_whitelist){
scanning_stop = false;
scanning_stop = true;
}
}