Skip to content

Commit 2af787f

Browse files
cvinayaknashif
authored andcommitted
tests: Bluetooth: Update to use Periodic Advertising enable ADI flags
Update Babblesim test to use Periodic Advertising enable and ADI flags. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 1213731 commit 2af787f

File tree

1 file changed

+5
-3
lines changed
  • tests/bluetooth/bsim_bt/bsim_test_advx/src

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ static void test_advx_main(void)
701701
}
702702

703703
printk("enabling periodic...");
704-
err = ll_adv_sync_enable(handle, 1);
704+
err = ll_adv_sync_enable(handle, BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE);
705705
if (err) {
706706
goto exit;
707707
}
@@ -795,7 +795,9 @@ static void test_advx_main(void)
795795
k_sleep(K_MSEC(1000));
796796

797797
printk("enabling periodic...");
798-
err = ll_adv_sync_enable(handle, 1);
798+
err = ll_adv_sync_enable(handle,
799+
(BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE |
800+
BT_HCI_LE_SET_PER_ADV_ENABLE_ADI));
799801
if (err) {
800802
goto exit;
801803
}
@@ -972,7 +974,7 @@ static void test_advx_main(void)
972974
printk("success.\n");
973975

974976
printk("enabling periodic...");
975-
err = ll_adv_sync_enable(handle, 1);
977+
err = ll_adv_sync_enable(handle, BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE);
976978
if (err) {
977979
goto exit;
978980
}

0 commit comments

Comments
 (0)