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

Bluetooth: Audio: Broadcast Assistant: Check add_source duplication #70373

Merged

Conversation

fredrikdanebjer
Copy link
Contributor

Added a check for checking duplication when adding a source in the broadcast assistant, as per requirement in BAP 6.5.4. It is not permitted to add a source such that a combination of broadcast_id, adv_sid and address type would result in same triple of values. Added a recv_state struct to cache these values when read, and moved past_avail and srd_ids into this as well.

Since there is no application specific error code present today, the assistant would not know if an add_src failed due to duplication, and so this has not been added to this PR. We should get an errata fix for this first.

This partially fixes #69661

Added a check for checking duplication when adding a source in the
broadcast assistant, as per requirement in BAP 6.5.4. It is not
permitted to add a source such that a combination of broadcast_id,
adv_sid and address type would result in same triple of values.
Added a recv_state struct to cache these values when read, and moved
past_avail and srd_ids into this as well.

Signed-off-by: Fredrik Danebjer <frdn@demant.com>
subsys/bluetooth/audio/bap_broadcast_assistant.c Outdated Show resolved Hide resolved
subsys/bluetooth/audio/bap_broadcast_assistant.c Outdated Show resolved Hide resolved
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.

Minor requests, otherwise LGTM

subsys/bluetooth/audio/bap_broadcast_assistant.c Outdated Show resolved Hide resolved
subsys/bluetooth/audio/bap_broadcast_assistant.c Outdated Show resolved Hide resolved
subsys/bluetooth/audio/bap_broadcast_assistant.c Outdated Show resolved Hide resolved
…nction

Moved the check of broadcast src duplicate to function while adding source.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
@fabiobaltieri fabiobaltieri merged commit 5be02da into zephyrproject-rtos:main Apr 3, 2024
24 checks passed
larsgk added a commit to larsgk/zephyr that referenced this pull request May 31, 2024
Nithin has contributed the following PRs

zephyrproject-rtos#72908
zephyrproject-rtos#72333
zephyrproject-rtos#71798
zephyrproject-rtos#70373

and is attending the weekly LE Audio Zephyr meetings.

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
larsgk added a commit to larsgk/zephyr that referenced this pull request May 31, 2024
Nithin has contributed the following PRs

zephyrproject-rtos#72908
zephyrproject-rtos#72333
zephyrproject-rtos#71798
zephyrproject-rtos#70373

and is attending the weekly LE Audio Zephyr meetings.

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
larsgk added a commit to larsgk/zephyr that referenced this pull request May 31, 2024
Nithin has contributed the following PRs

zephyrproject-rtos#72908
zephyrproject-rtos#72333
zephyrproject-rtos#71798
zephyrproject-rtos#70373

and is attending the weekly LE Audio Zephyr meetings.

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
henrikbrixandersen pushed a commit that referenced this pull request Jun 1, 2024
Nithin has contributed the following PRs

#72908
#72333
#71798
#70373

and is attending the weekly LE Audio Zephyr meetings.

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
coreboot-org-bot pushed a commit to coreboot/zephyr-cros that referenced this pull request Jun 4, 2024
Nithin has contributed the following PRs

zephyrproject-rtos/zephyr#72908
zephyrproject-rtos/zephyr#72333
zephyrproject-rtos/zephyr#71798
zephyrproject-rtos/zephyr#70373

and is attending the weekly LE Audio Zephyr meetings.

(cherry picked from commit 3fd01c5)

Original-Signed-off-by: Lars Knudsen <larsgk@gmail.com>
GitOrigin-RevId: 3fd01c5
Change-Id: I1539d7f9acb7d333ae6c6200dffaec5deceb0c3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5591121
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
crazyskady pushed a commit to crazyskady/zephyr that referenced this pull request Jun 6, 2024
Nithin has contributed the following PRs

zephyrproject-rtos#72908
zephyrproject-rtos#72333
zephyrproject-rtos#71798
zephyrproject-rtos#70373

and is attending the weekly LE Audio Zephyr meetings.

Signed-off-by: Lars Knudsen <larsgk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
6 participants