Skip to content

Commit 13ffeab

Browse files
committed
tests: Bluetooth: bsim: name adv_handle for advertising handle
Use the name adv_handle instead of index to store advertising handle. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent d64252a commit 13ffeab

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static void test_iso_main(void)
5959
{
6060
struct bt_le_ext_adv *adv;
6161
int err;
62-
int index;
6362
uint8_t bis_count = 1; /* TODO: Add support for multiple BIS per BIG */
6463

6564
printk("\n*ISO broadcast test*\n");
@@ -108,6 +107,7 @@ static void test_iso_main(void)
108107

109108
#if !IS_ENABLED(USE_HOST_API)
110109
uint8_t big_handle = 0;
110+
uint8_t adv_handle;
111111
uint32_t sdu_interval = 0x10000; /*us */
112112
uint16_t max_sdu = 0x10;
113113
uint16_t max_latency = 0x0A;
@@ -119,10 +119,10 @@ static void test_iso_main(void)
119119
uint8_t bcode[16] = { 0 };
120120

121121
/* Assume that index == handle */
122-
index = bt_le_ext_adv_get_index(adv);
122+
adv_handle = bt_le_ext_adv_get_index(adv);
123123

124124
printk("Creating BIG...");
125-
err = ll_big_create(big_handle, index, bis_count, sdu_interval, max_sdu,
125+
err = ll_big_create(big_handle, adv_handle, bis_count, sdu_interval, max_sdu,
126126
max_latency, rtn, phy, packing, framing, encryption,
127127
bcode);
128128
if (err) {

0 commit comments

Comments
 (0)