Skip to content

Commit bfbdf52

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: Audio: Open backchannel to self
In order to use the device IDs send sending to a specific device, e.g. backchannel_sync_send(3), then we need to open all backchannels including the one to ourself, otherwise the ID and count will be off by one. Signed-off-by: Emil Gydesen <[email protected]>
1 parent d791562 commit bfbdf52

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/bsim/bluetooth/audio/src/common.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,8 @@ static void setup_backchannels(void)
328328
uint *channels;
329329

330330
for (int32_t i = 0; i < dev_cnt; i++) {
331-
if (i != self) { /* skip ourselves*/
332-
backchannel_nums[chan_cnt] = get_chan_num((uint16_t)i);
333-
device_numbers[chan_cnt++] = i;
334-
}
331+
backchannel_nums[chan_cnt] = get_chan_num((uint16_t)i);
332+
device_numbers[chan_cnt++] = i;
335333
}
336334

337335
channels = bs_open_back_channel(self, device_numbers, backchannel_nums, chan_cnt);

0 commit comments

Comments
 (0)