bluetooth: audio: broadcast: Fix missing update of meta_len

The length of the updated metadata was not updated.
Fixes the CAP/INI/BST/BV-13-C test case.

Signed-off-by: Magdalena Kasenberg <magdalena.kasenberg@codecoup.pl>
This commit is contained in:
Magdalena Kasenberg 2023-12-20 16:47:34 +01:00 committed by Fabio Baltieri
commit e05d964b46

View file

@ -938,6 +938,7 @@ int bt_bap_broadcast_source_update_metadata(struct bt_bap_broadcast_source *sour
SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) {
memset(subgroup->codec_cfg->meta, 0, sizeof(subgroup->codec_cfg->meta));
memcpy(subgroup->codec_cfg->meta, meta, meta_len);
subgroup->codec_cfg->meta_len = meta_len;
}
return 0;