Skip to content

Commit 54d31d0

Browse files
Thalleystephanosio
authored andcommitted
tests: Bluetooth: Unicast client remove CIG guards
The unicast client will now actually create the CIG in the test regardless of the `CONFIG_BT_CTLR_CENTRAL_ISO` value. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 7ab955e commit 54d31d0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/bluetooth/bsim_bt/bsim_test_audio/src/unicast_client_test.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static void create_unicast_group(struct bt_audio_unicast_group **unicast_group)
342342
struct bt_audio_unicast_group_stream_pair_param pair_params[stream_cnt];
343343
struct bt_audio_unicast_group_stream_param stream_params[stream_cnt];
344344
struct bt_audio_unicast_group_param param;
345+
int err;
345346

346347
for (size_t i = 0U; i < stream_cnt; i++) {
347348
stream_params[i].stream = &g_streams[i];
@@ -354,30 +355,25 @@ static void create_unicast_group(struct bt_audio_unicast_group **unicast_group)
354355
param.params_count = stream_cnt;
355356
param.packing = BT_ISO_PACKING_SEQUENTIAL;
356357

357-
#if defined(CONFIG_BT_CTLR_CENTRAL_ISO)
358-
int err;
359-
360358
/* Require controller support for CIGs */
361359
printk("Creating unicast group\n");
362360
err = bt_audio_unicast_group_create(&param, unicast_group);
363361
if (err != 0) {
364362
FAIL("Unable to create unicast group: %d", err);
365363
return;
366364
}
367-
#endif /* CONFIG_BT_CTLR_CENTRAL_ISO */
368365
}
369366

370367
static void delete_unicast_group(struct bt_audio_unicast_group *unicast_group)
371368
{
372-
#if defined(CONFIG_BT_CTLR_CENTRAL_ISO)
373369
int err;
370+
374371
/* Require controller support for CIGs */
375372
err = bt_audio_unicast_group_delete(unicast_group);
376373
if (err != 0) {
377374
FAIL("Unable to delete unicast group: %d", err);
378375
return;
379376
}
380-
#endif /* CONFIG_BT_CTLR_CENTRAL_ISO */
381377
}
382378

383379
static void test_main(void)

0 commit comments

Comments
 (0)