Skip to content

Conversation

@omkar3141
Copy link
Contributor

This commit adds API to tester to allow exposing of Broadcast Receive State.

@omkar3141 omkar3141 requested a review from Thalley November 21, 2025 08:51
@zephyrbot zephyrbot added area: Bluetooth Audio area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests labels Nov 21, 2025
@zephyrbot zephyrbot added area: Tests Issues related to a particular existing or missing test area: Bluetooth labels Nov 21, 2025
@Thalley
Copy link
Contributor

Thalley commented Nov 21, 2025

AutoPTS related PR: auto-pts/auto-pts#1627

@Thalley Thalley requested a review from Copilot November 21, 2025 15:24
Copilot finished reviewing on behalf of Thalley November 21, 2025 15:27
Copy link

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.

Pull request overview

This PR adds API support to the Bluetooth tester for exposing Broadcast Receive State (BRS) and fixes a bug in the core subsystem where encrypt_state was not being set when adding a broadcast source.

  • Adds new btp_bap_broadcast_add_receive_state function to create broadcast receive states directly
  • Registers the new command handler with opcode BTP_BAP_ADD_BROADCAST_RECEIVE_STATE
  • Fixes missing encrypt_state assignment in bt_bap_scan_delegator_add_src

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/bluetooth/tester/src/audio/btp_bap_broadcast.h Declares the new btp_bap_broadcast_add_receive_state function
tests/bluetooth/tester/src/audio/btp_bap_broadcast.c Implements the function to parse command parameters, convert BIS sync bitfields, and add a broadcast source to the scan delegator
tests/bluetooth/tester/src/audio/btp_bap.c Registers the new handler for the BTP_BAP_ADD_BROADCAST_RECEIVE_STATE opcode
tests/bluetooth/tester/src/audio/btp/btp_bap.h Defines the protocol structures for the add broadcast receive state command and response
subsys/bluetooth/audio/bap_scan_delegator.c Fixes bug where encrypt_state parameter was not being assigned to the state when adding a source

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@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 requests

Fixes a bug where encrypt state value was not updated based on given
parameters.

Signed-off-by: Omkar Kulkarni <[email protected]>
@omkar3141 omkar3141 force-pushed the omku/fix_bass_sr_cp_bv_21_c branch from 5e18a61 to 34151b6 Compare November 24, 2025 11:29
@omkar3141 omkar3141 requested a review from Thalley November 24, 2025 11:29
@omkar3141 omkar3141 force-pushed the omku/fix_bass_sr_cp_bv_21_c branch 2 times, most recently from 2e8afaf to 172dd55 Compare November 24, 2025 13:46
@omkar3141 omkar3141 force-pushed the omku/fix_bass_sr_cp_bv_21_c branch from 82df800 to 1d02d18 Compare November 24, 2025 14:11
@omkar3141 omkar3141 requested review from Thalley and koffes November 24, 2025 14:19
Thalley
Thalley previously approved these changes Nov 25, 2025
Copilot finished reviewing on behalf of Thalley November 25, 2025 10:00
Copy link

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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@omkar3141 omkar3141 force-pushed the omku/fix_bass_sr_cp_bv_21_c branch 2 times, most recently from b6d8ba8 to 3e0c7bd Compare November 25, 2025 13:10
Thalley
Thalley previously approved these changes Nov 25, 2025
Copy link
Contributor

@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.

Minor nitpick comments, but aren't blockers

This commit adds API to tester to allow exposing of Broadcast Receive
State.

Signed-off-by: Omkar Kulkarni <[email protected]>
@omkar3141 omkar3141 force-pushed the omku/fix_bass_sr_cp_bv_21_c branch from a143939 to 43ec9e4 Compare November 25, 2025 15:14
@sonarqubecloud
Copy link

@koffes
Copy link
Contributor

koffes commented Nov 25, 2025

@larsgk, we would very much appreciate your eye on this one, as we are in a bit of a hurry to get it merged.

@Thalley Thalley requested a review from Copilot November 25, 2025 18:18
Copilot finished reviewing on behalf of Thalley November 25, 2025 18:21
Copy link

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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@asbjornsabo asbjornsabo left a comment

Choose a reason for hiding this comment

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

LGTM

@fabiobaltieri fabiobaltieri merged commit d8ed0f8 into zephyrproject-rtos:main Nov 26, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Bluetooth LE Audio Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Audio area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Bluetooth area: Tests Issues related to a particular existing or missing test

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants