-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Bluetooth: host: Ensure BASS notifications are sent #88243
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: Ensure BASS notifications are sent #88243
Conversation
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.
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.
Overall looks good, with a few comments
0a31330
to
f62b10f
Compare
cccd501
to
2743aac
Compare
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.
Some minor/nitpick comments left, otherwise LGTM
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
subsys/bluetooth/audio/bap_scan_delegator.c:113
- The 'updated' flag in 'struct bass_recv_state_flags' is modified in set_receive_state_changed_cb without holding a lock, while reads/modifications elsewhere are protected by a mutex. Consider using an atomic type or ensuring all accesses are guarded by a mutex to prevent potential data races.
flags->updated = true;
subsys/bluetooth/audio/bap_scan_delegator.c:585
- [nitpick] The function name 'scan_delegator_add_src' is less descriptive compared to its original name. Consider reverting to or adopting a more self-explanatory name, such as 'scan_delegator_add_source', for clarity.
static int scan_delegator_add_src(struct bt_conn *conn,
2743aac
to
c837ed5
Compare
3c4a0ec
to
9b0620d
Compare
Update bit array (number of connections) added for each receive state. Notifications are attempted to be sent in the system workqueue and retried if failing. Issue zephyrproject-rtos#85487 Signed-off-by: Jens Rehhoff Thomsen <[email protected]>
9b0620d
to
f08f5f1
Compare
Update bit array (number of connections) added for each receive state. Notifications are attempted to be sent in the system workqueue and retried if failing.
Fixes #85487