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: BAP: Scan delegator missing state change for bis_sync #63745

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions subsys/bluetooth/audio/bap_scan_delegator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ int bt_bap_scan_delegator_mod_src(const struct bt_bap_scan_delegator_mod_src_par
{
struct bass_recv_state_internal *internal_state = NULL;
struct bt_bap_scan_delegator_recv_state *state;
static bool state_changed;
bool state_changed = false;

CHECKIF(!valid_bt_bap_scan_delegator_mod_src_param(param)) {
return -EINVAL;
Expand Down Expand Up @@ -1340,7 +1340,10 @@ int bt_bap_scan_delegator_mod_src(const struct bt_bap_scan_delegator_mod_src_par
const struct bt_bap_scan_delegator_subgroup *param_subgroup = &param->subgroups[i];
struct bt_bap_scan_delegator_subgroup *subgroup = &state->subgroups[i];

subgroup->bis_sync = param_subgroup->bis_sync;
if (subgroup->bis_sync != param_subgroup->bis_sync) {
subgroup->bis_sync = param_subgroup->bis_sync;
state_changed = true;
}

/* If the metadata len is 0, we shall not overwrite the existing metadata */
if (param_subgroup->metadata_len == 0U) {
Expand Down
Loading