Skip to content

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

jthm-ot
Copy link
Collaborator

@jthm-ot jthm-ot commented Apr 7, 2025

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

@Thalley Thalley requested a review from Copilot April 7, 2025 12:06
Copy link

@Copilot Copilot AI left a 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.

Copy link
Collaborator

@Thalley Thalley left a 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

@jthm-ot jthm-ot requested a review from Thalley April 8, 2025 09:35
@jthm-ot jthm-ot force-pushed the work_bap_scan_delegator branch 2 times, most recently from 0a31330 to f62b10f Compare April 9, 2025 12:08
@jthm-ot jthm-ot force-pushed the work_bap_scan_delegator branch 2 times, most recently from cccd501 to 2743aac Compare April 10, 2025 12:53
@jthm-ot jthm-ot requested a review from Thalley April 10, 2025 12:53
Copy link
Collaborator

@Thalley Thalley left a 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

@Thalley Thalley requested a review from Copilot April 10, 2025 13:53
Copy link

@Copilot Copilot AI left a 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,

@jthm-ot jthm-ot force-pushed the work_bap_scan_delegator branch from 2743aac to c837ed5 Compare April 11, 2025 08:18
@jthm-ot jthm-ot force-pushed the work_bap_scan_delegator branch 4 times, most recently from 3c4a0ec to 9b0620d Compare April 14, 2025 00:08
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]>
@jthm-ot jthm-ot force-pushed the work_bap_scan_delegator branch from 9b0620d to f08f5f1 Compare April 23, 2025 07:34
@jthm-ot jthm-ot marked this pull request as ready for review April 23, 2025 11:47
@kartben kartben merged commit 73000a6 into zephyrproject-rtos:main Apr 25, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Bluetooth LE Audio Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Bluetooth: Audio: Ensure BASS notifications are sent
4 participants