Bluetooth: Host: Change PA sync scan to fast scan

Instead of doing slow (non-fast) scan when syncing to
a PA, it will now do a fast scan, which drastically reduces the
time it takes to create the sync. The application may
still do explicit slow scan if wanted.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2020-09-21 20:50:01 +02:00 committed by Johan Hedberg
commit 27f6bf19e8

View file

@ -7395,7 +7395,7 @@ int bt_le_per_adv_sync_create(const struct bt_le_per_adv_sync_param *param,
* the advertiser address in the sync params.
*/
if (!atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) {
err = bt_le_scan_update(false);
err = bt_le_scan_update(true);
if (err) {
bt_le_per_adv_sync_delete(per_adv_sync);