-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: Host: Fix Periodic Advertising Sync using Advertiser Lists #38594
Bluetooth: Host: Fix Periodic Advertising Sync using Advertiser Lists #38594
Conversation
cfe9de5
to
c45ec77
Compare
@saleh-unikie please check if this PR in combination with #38338 fixes #38520 |
Yes, Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct, but a few minor requests
subsys/bluetooth/host/scan.c
Outdated
(!atomic_test_bit(pending_per_adv_sync->flags, | ||
BT_PER_ADV_SYNC_USE_LIST) && | ||
((pending_per_adv_sync->sid != evt->sid) || | ||
bt_addr_le_cmp(&pending_per_adv_sync->addr, &evt->adv_addr)))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check here is correct, although I wish we could make it a bit more readable, but I don't have any suggestions.
There's a little bit of indentation that should be fixed
(!atomic_test_bit(pending_per_adv_sync->flags, | |
BT_PER_ADV_SYNC_USE_LIST) && | |
((pending_per_adv_sync->sid != evt->sid) || | |
bt_addr_le_cmp(&pending_per_adv_sync->addr, &evt->adv_addr)))) { | |
(!atomic_test_bit(pending_per_adv_sync->flags, | |
BT_PER_ADV_SYNC_USE_LIST) && | |
((pending_per_adv_sync->sid != evt->sid) || | |
bt_addr_le_cmp(&pending_per_adv_sync->addr, &evt->adv_addr)))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only line 698 was missing a whitespace, fixed.
subsys/bluetooth/host/hci_core.h
Outdated
/** Periodic Advertising Sync Create using Advertiser List */ | ||
BT_PER_ADV_SYNC_USE_LIST, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Periodic Advertising Sync Create using Advertiser List */ | |
BT_PER_ADV_SYNC_USE_LIST, | |
/** Periodic advertising is attempting sync sync */ using Advertiser List */ | |
BT_PER_ADV_SYNC_SYNCING_USE_LIST, |
And move next to the BT_PER_ADV_SYNC_SYNCING
flag as those are the most related flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update this and other comments.
Fix Periodic Advertising Sync Establishment to accept synchronization establishment to device listed in the Periodic Advertisers List when filter policy was used. Fixes zephyrproject-rtos#38520. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
c45ec77
to
3335631
Compare
Fix Periodic Advertising Sync Establishment to accept
synchronization establishment to device listed in the
Periodic Advertisers List when filter policy was used.
Fixes #38520.
Signed-off-by: Vinayak Kariappa Chettimada [email protected]