/Zephyr-Core-3.4.0/tests/bluetooth/host/id/bt_id_adv_random_addr_check/src/ |
D | main.c | 42 struct bt_le_adv_param adv_param = {0}; in ZTEST() local 46 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST() 63 struct bt_le_adv_param adv_param = {0}; in ZTEST() local 67 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST() 87 struct bt_le_adv_param adv_param; in ZTEST() local 95 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST() 115 struct bt_le_adv_param adv_param = {0}; in ZTEST() local 124 adv_param.options |= BT_LE_ADV_OPT_USE_IDENTITY; in ZTEST() 125 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST() 127 result = bt_id_adv_random_addr_check(&adv_param); in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/tests/bluetooth/host/id/bt_id_set_adv_random_addr/src/ |
D | main.c | 46 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 53 err = bt_id_set_adv_random_addr(&adv_param, &BT_RPA_LE_ADDR->a); in ZTEST() 77 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 81 atomic_clear_bit(adv_param.flags, BT_ADV_PARAMS_SET); in ZTEST() 83 err = bt_id_set_adv_random_addr(&adv_param, &BT_RPA_LE_ADDR->a); in ZTEST() 91 zassert_true(atomic_test_bit(adv_param.flags, BT_ADV_RANDOM_ADDR_PENDING), in ZTEST() 94 zassert_mem_equal(&adv_param.random_addr, BT_RPA_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 116 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 120 atomic_set_bit(adv_param.flags, BT_ADV_PARAMS_SET); in ZTEST() 126 err = bt_id_set_adv_random_addr(&adv_param, &BT_RPA_LE_ADDR->a); in ZTEST() [all …]
|
D | test_suite_invalid_cases.c | 50 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 53 bt_id_set_adv_random_addr(&adv_param, NULL); in ZTEST() 89 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 93 atomic_set_bit(adv_param.flags, BT_ADV_PARAMS_SET); in ZTEST() 97 err = bt_id_set_adv_random_addr(&adv_param, &BT_RPA_LE_ADDR->a); in ZTEST() 121 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 125 atomic_set_bit(adv_param.flags, BT_ADV_PARAMS_SET); in ZTEST() 131 err = bt_id_set_adv_random_addr(&adv_param, &BT_RPA_LE_ADDR->a); in ZTEST()
|
/Zephyr-Core-3.4.0/tests/bluetooth/host/id/bt_id_set_adv_private_addr/src/ |
D | main.c | 79 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 86 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST() 89 expect_single_call_bt_rpa_create(bt_dev.irk[adv_param.id]); in ZTEST() 113 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 120 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST() 123 expect_single_call_bt_rpa_create(bt_dev.irk[adv_param.id]); in ZTEST() 127 zassert_true(atomic_test_bit(adv_param.flags, BT_ADV_RANDOM_ADDR_PENDING), in ZTEST() 130 zassert_mem_equal(&adv_param.random_addr, BT_RPA_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 134 zassert_true(atomic_test_bit(adv_param.flags, BT_ADV_RPA_VALID), in ZTEST() 156 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local [all …]
|
D | test_suite_invalid_cases.c | 51 struct bt_le_ext_adv adv_param; in ZTEST() local 57 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST() 83 struct bt_le_ext_adv adv_param; in ZTEST() local 91 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST() 112 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 119 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST() 152 struct bt_le_ext_adv adv_param = {0}; in ZTEST() local 160 atomic_set_bit(adv_param.flags, BT_ADV_PARAMS_SET); in ZTEST() 163 err = bt_id_set_adv_private_addr(&adv_param); in ZTEST()
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/ |
D | adv_ext.c | 66 struct bt_le_adv_param adv_param; member 167 param != &adv->adv_param); in adv_start() 198 if (adv->adv_param.interval_min != BT_MESH_ADV_SCAN_UNIT(adv_interval)) { in bt_data_send() 199 adv->adv_param.interval_min = BT_MESH_ADV_SCAN_UNIT(adv_interval); in bt_data_send() 200 adv->adv_param.interval_max = adv->adv_param.interval_min; in bt_data_send() 204 return adv_start(adv, &adv->adv_param, &start, ad, ad_len, NULL, 0); in bt_data_send() 397 struct bt_le_adv_param adv_param = { in bt_mesh_adv_init() local 406 (void)memcpy(&adv->adv_param, &adv_param, sizeof(adv_param)); in bt_mesh_adv_init() 471 err = bt_le_ext_adv_create(&adv->adv_param, &adv_cb, in bt_mesh_adv_enable()
|
/Zephyr-Core-3.4.0/samples/bluetooth/broadcaster_multiple/src/ |
D | broadcaster_multiple.c | 61 struct bt_le_adv_param adv_param = { in broadcaster_multiple() local 81 adv_param.sid = index; in broadcaster_multiple() 84 err = bt_le_ext_adv_create(&adv_param, NULL, &adv[index]); in broadcaster_multiple()
|
/Zephyr-Core-3.4.0/samples/bluetooth/direct_adv/src/ |
D | main.c | 36 static struct bt_le_adv_param adv_param; variable 126 adv_param = *BT_LE_ADV_CONN_DIR_LOW_DUTY(&bond_addr); in bt_ready() 127 adv_param.options |= BT_LE_ADV_OPT_DIR_ADDR_RPA; in bt_ready() 128 err = bt_le_adv_start(&adv_param, NULL, 0, NULL, 0); in bt_ready()
|
/Zephyr-Core-3.4.0/samples/bluetooth/peripheral_accept_list/src/ |
D | main.c | 32 static struct bt_le_adv_param adv_param; variable 122 adv_param = *BT_LE_ADV_CONN_NAME; in bt_ready() 130 adv_param.options |= BT_LE_ADV_OPT_FILTER_CONN | BT_LE_ADV_OPT_FILTER_SCAN_REQ; in bt_ready() 133 err = bt_le_adv_start(&adv_param, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); in bt_ready()
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/privacy/device/src/ |
D | test_undirected_peripheral.c | 76 static enum adv_param_t adv_param; variable 134 adv_param = CONN_SCAN; in peripheral_test_args_parse() 137 adv_param = CONN_NSCAN; in peripheral_test_args_parse() 139 adv_param = NCONN_SCAN; in peripheral_test_args_parse() 141 adv_param = NCONN_NSCAN; in peripheral_test_args_parse() 430 update_adv_params(adv, adv_param, test_addr_type); in test_peripheral_main()
|
/Zephyr-Core-3.4.0/samples/bluetooth/peripheral_identity/src/ |
D | peripheral_identity.c | 27 struct bt_le_adv_param adv_param = { in adv_start() local 58 adv_param.id = id_current; in adv_start() 60 err = bt_le_adv_start(&adv_param, ad, ARRAY_SIZE(ad), NULL, 0); in adv_start()
|
/Zephyr-Core-3.4.0/tests/bluetooth/tester/src/ |
D | btp_gap.c | 621 struct bt_le_adv_param adv_param; in start_directed_advertising() local 624 adv_param = *BT_LE_ADV_CONN_DIR(&cp->address); in start_directed_advertising() 627 adv_param.options |= BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY; in start_directed_advertising() 628 adv_param.interval_max = BT_GAP_ADV_FAST_INT_MAX_2; in start_directed_advertising() 629 adv_param.interval_min = BT_GAP_ADV_FAST_INT_MIN_2; in start_directed_advertising() 638 adv_param.options |= BT_LE_ADV_OPT_DIR_ADDR_RPA; in start_directed_advertising() 645 if (bt_le_adv_start(&adv_param, NULL, 0, NULL, 0) < 0) { in start_directed_advertising()
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/advx/src/ |
D | main.c | 644 const struct bt_le_adv_param adv_param = { in test_advx_main() local 648 err = bt_le_adv_start(&adv_param, NULL, 0, NULL, 0); in test_advx_main()
|