Skip to content

Commit 27f6bf1

Browse files
Thalleyjhedberg
authored andcommitted
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 <[email protected]>
1 parent b78245d commit 27f6bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7395,7 +7395,7 @@ int bt_le_per_adv_sync_create(const struct bt_le_per_adv_sync_param *param,
73957395
* the advertiser address in the sync params.
73967396
*/
73977397
if (!atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) {
7398-
err = bt_le_scan_update(false);
7398+
err = bt_le_scan_update(true);
73997399

74007400
if (err) {
74017401
bt_le_per_adv_sync_delete(per_adv_sync);

0 commit comments

Comments
 (0)