Bluetooth: Shell: Move scan filter to function

Move the scan filter to a new function so that it may
be reused by other shell modules.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2023-06-19 22:35:18 +02:00 committed by Carles Cufí
commit 8cd0758bdf
5 changed files with 59 additions and 18 deletions

View file

@ -561,6 +561,10 @@ static void scan_recv_cb(const struct bt_le_scan_recv_info *info,
return;
}
if (!passes_scan_filter(info, ad)) {
return;
}
bt_data_parse(ad, broadcast_source_found, (void *)info);
}