tests: Bluetooth: Allow BT_BAP_BASS_MAX_SUBGROUPS larger than 1
The BAP scan delegator test does not compile when BT_BAP_BASS_MAX_SUBGROUPS is larger than 1. Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
ad0a1c76bd
commit
363133e62c
1 changed files with 7 additions and 2 deletions
|
@ -654,12 +654,17 @@ static void remove_all_sources(void)
|
||||||
static int sync_broadcast(struct sync_state *state)
|
static int sync_broadcast(struct sync_state *state)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
uint32_t bis_sync[CONFIG_BT_BAP_BASS_MAX_SUBGROUPS];
|
||||||
|
|
||||||
UNSET_FLAG(flag_recv_state_updated);
|
UNSET_FLAG(flag_recv_state_updated);
|
||||||
|
|
||||||
|
for (size_t i = 0U; i < CONFIG_BT_BAP_BASS_MAX_SUBGROUPS; i++) {
|
||||||
|
bis_sync[i] = BT_ISO_BIS_INDEX_BIT(i + 1);
|
||||||
|
}
|
||||||
|
|
||||||
/* We don't actually need to sync to the BIG/BISes */
|
/* We don't actually need to sync to the BIG/BISes */
|
||||||
err = bt_bap_scan_delegator_set_bis_sync_state(state->src_id,
|
err = bt_bap_scan_delegator_set_bis_sync_state(state->src_id, bis_sync);
|
||||||
(uint32_t[]){BT_ISO_BIS_INDEX_BIT(1)});
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue