Skip to content

Commit f0e1823

Browse files
Thalleynashif
authored andcommitted
Bluetooth: bsim: Update bsim_test_iso to use defined broadcast code size
Use the #define for the broadcast code. Signed-off-by: Emil Gydesen <[email protected]>
1 parent ed46180 commit f0e1823

File tree

1 file changed

+3
-2
lines changed
  • tests/bluetooth/bsim_bt/bsim_test_iso/src

1 file changed

+3
-2
lines changed

tests/bluetooth/bsim_bt/bsim_test_iso/src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <bluetooth/bluetooth.h>
1616
#include <bluetooth/hci.h>
17+
#include <bluetooth/iso.h>
1718

1819
#include "bs_types.h"
1920
#include "bs_tracing.h"
@@ -116,7 +117,7 @@ static void test_iso_main(void)
116117
uint8_t packing = 0;
117118
uint8_t framing = 0;
118119
uint8_t encryption = 0;
119-
uint8_t bcode[16] = { 0 };
120+
uint8_t bcode[BT_ISO_BROADCAST_CODE_SIZE] = { 0 };
120121

121122
/* Assume that index == handle */
122123
adv_handle = bt_le_ext_adv_get_index(adv);
@@ -344,7 +345,7 @@ static void test_iso_recv_main(void)
344345
uint8_t big_handle = 0;
345346
uint8_t mse = 0;
346347
uint8_t encryption = 0;
347-
uint8_t bcode[16] = { 0 };
348+
uint8_t bcode[BT_ISO_BROADCAST_CODE_SIZE] = { 0 };
348349
uint16_t sync_timeout = 0;
349350
struct node_rx_hdr *node_rx;
350351

0 commit comments

Comments
 (0)