Skip to content
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

tests: Bluetooth: Audio: Cap broadcast reception stop bsim tests #76266

Merged

Conversation

kruithofa
Copy link
Collaborator

Add a babblesim test for the CAP broadcast reception stop procedure

@kruithofa kruithofa added the DNM This PR should not be merged (Do Not Merge) label Jul 24, 2024
@Thalley Thalley self-assigned this Aug 30, 2024
@kruithofa kruithofa force-pushed the CAP_broadcast_reception_stop_bsim branch from 352c417 to d01b8c8 Compare September 26, 2024 08:55
@kruithofa kruithofa force-pushed the CAP_broadcast_reception_stop_bsim branch 3 times, most recently from b57d791 to 8c01cd4 Compare October 30, 2024 10:11
@kruithofa kruithofa added area: Bluetooth area: Bluetooth Audio and removed DNM This PR should not be merged (Do Not Merge) labels Oct 30, 2024
@kruithofa kruithofa marked this pull request as ready for review October 30, 2024 12:08
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.

A few minor comments, otherwise LGTM

Comment on lines +404 to +412
uint32_t total_bis = 0U;

broadcaster_broadcast_id = recv_state->broadcast_id;
if (bis_sync_req[0] != 0) {

for (int i = 0; i < recv_state->num_subgroups; i++) {
total_bis |= bis_sync_req[i];
}

if (total_bis != 0U) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

total_bis should be used in create_and_sync_sink to determine which BIS to sync to.

Keep in mind that the value of bis_sync_req[i] may be BT_BAP_BIS_SYNC_NO_PREF

This is arguably outside the scope of this PR, as the existing test is not using the sync value from the broadcast assistant.

tests/bsim/bluetooth/audio/src/cap_acceptor_test.c Outdated Show resolved Hide resolved
tests/bsim/bluetooth/audio/src/cap_commander_test.c Outdated Show resolved Hide resolved
tests/bsim/bluetooth/audio/src/cap_commander_test.c Outdated Show resolved Hide resolved
@kruithofa kruithofa force-pushed the CAP_broadcast_reception_stop_bsim branch from 8c01cd4 to c07fedd Compare November 5, 2024 10:39
Implement a babblesim test for the CAP broadcast reception stop
procedure

Signed-off-by: Andries Kruithof <[email protected]>
@kruithofa kruithofa force-pushed the CAP_broadcast_reception_stop_bsim branch from c07fedd to 73cfe6c Compare November 5, 2024 11:48
@nashif nashif merged commit 6d187ba into zephyrproject-rtos:main Nov 16, 2024
25 checks passed
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.

4 participants