/Zephyr-latest/tests/bluetooth/host/id/bt_id_reset/src/ |
D | main.c | 24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 71 bt_dev.id_count = 2; in ZTEST() 72 input_id = bt_dev.id_count - 1; /* ID must not equal BT_ID_DEFAULT */ in ZTEST() 73 id_count = bt_dev.id_count; in ZTEST() 74 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST() 83 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST() 84 zassert_mem_equal(&bt_dev.id_addr[returned_id], BT_STATIC_RANDOM_LE_ADDR_1, in ZTEST() 108 bt_dev.id_count = 2; in ZTEST() 109 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 111 input_id = bt_dev.id_count - 1; /* ID must not equal BT_ID_DEFAULT */ in ZTEST() [all …]
|
D | test_suite_invalid_inputs.c | 58 bt_dev.id_count = 1; in ZTEST() 60 err = bt_id_reset(bt_dev.id_count, NULL, NULL); in ZTEST() 146 bt_dev.id_count = 1; in ZTEST() 147 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 166 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake() 169 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake() 194 bt_dev.id_count = 2; in ZTEST() 201 err = bt_id_reset(bt_dev.id_count - 1, BT_STATIC_RANDOM_LE_ADDR_1, NULL); in ZTEST() 228 bt_dev.id_count = 2; in ZTEST() 229 id = bt_dev.id_count - 1; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_delete/src/ |
D | main.c | 24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 55 bt_dev.id_count = 3; in ZTEST() 57 id_count = bt_dev.id_count; in ZTEST() 59 bt_addr_le_copy(&bt_dev.id_addr[0], BT_RPA_LE_ADDR); in ZTEST() 60 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 61 bt_addr_le_copy(&bt_dev.id_addr[2], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST() 63 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 71 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST() 73 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST() 76 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST() [all …]
|
D | test_suite_bt_settings.c | 50 bt_dev.id_count = 3; in ZTEST() 52 id_count = bt_dev.id_count; in ZTEST() 54 bt_addr_le_copy(&bt_dev.id_addr[0], BT_RPA_LE_ADDR); in ZTEST() 55 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 56 bt_addr_le_copy(&bt_dev.id_addr[2], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST() 58 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 66 zassert_true(bt_dev.id_count == id_count, "Incorrect ID count %d was set", bt_dev.id_count); in ZTEST() 68 zassert_mem_equal(&bt_dev.id_addr[id], BT_ADDR_LE_ANY, sizeof(bt_addr_le_t), in ZTEST() 71 zassert_mem_equal(bt_dev.irk[id], zero_irk, sizeof(zero_irk), in ZTEST() 105 bt_dev.id_count = 2; in ZTEST() [all …]
|
D | test_suite_invalid_inputs.c | 54 bt_dev.id_count = 1; in ZTEST() 56 err = bt_id_delete(bt_dev.id_count); in ZTEST() 75 bt_dev.id_count = 2; in ZTEST() 76 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 77 bt_addr_le_copy(&bt_dev.id_addr[1], BT_ADDR_LE_ANY); in ZTEST() 96 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake() 99 adv_params.id = bt_dev.id_count - 1; in bt_le_ext_adv_foreach_custom_fake() 122 bt_dev.id_count = 2; in ZTEST() 123 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 124 bt_addr_le_copy(&bt_dev.id_addr[1], BT_STATIC_RANDOM_LE_ADDR_2); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/ |
D | main.c | 22 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 65 id_count = bt_dev.id_count; in ZTEST() 66 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST() 74 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST() 75 bt_dev.id_count); in ZTEST() 76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 99 bt_dev.id_count = 1; in ZTEST() 100 bt_addr_le_copy(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1); in ZTEST() 102 id_count = bt_dev.id_count; in ZTEST() 103 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST() [all …]
|
D | test_suite_privacy_enabled.c | 62 id_count = bt_dev.id_count; in ZTEST() 63 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST() 71 expect_single_call_bt_rand(&bt_dev.irk[new_id], 16); in ZTEST() 74 zassert_true(bt_dev.id_count == (id_count + 1), "Incorrect ID count %d was set", in ZTEST() 75 bt_dev.id_count); in ZTEST() 76 zassert_mem_equal(&bt_dev.id_addr[new_id], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 78 zassert_mem_equal(&bt_dev.irk[new_id], testing_irk_value, sizeof(testing_irk_value), in ZTEST() 104 id_count = bt_dev.id_count; in ZTEST() 105 atomic_set_bit(bt_dev.flags, BT_DEV_ENABLE); in ZTEST() 113 expect_single_call_bt_rand(&bt_dev.irk[new_id], 16); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_del/src/ |
D | main.c | 32 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 60 bt_dev.le.rl_size = 0; in ZTEST() 61 bt_dev.le.rl_entries = 1; in ZTEST() 62 expected_rl_entries = bt_dev.le.rl_entries - 1; in ZTEST() 69 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST() 89 bt_dev.le.rl_size = 1; in ZTEST() 90 bt_dev.le.rl_entries = 3; in ZTEST() 91 expected_rl_entries = bt_dev.le.rl_entries - 1; in ZTEST() 98 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST() 121 bt_dev.le.rl_size = 1; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_add/src/ |
D | main.c | 31 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 57 bt_dev.le.rl_size = 0; in ZTEST() 58 bt_dev.le.rl_entries = 0; in ZTEST() 59 expected_rl_entries = bt_dev.le.rl_entries + 1; in ZTEST() 65 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST() 84 bt_dev.le.rl_size = 1; in ZTEST() 85 bt_dev.le.rl_entries = 2; in ZTEST() 86 expected_rl_entries = bt_dev.le.rl_entries + 1; in ZTEST() 92 zassert_equal(expected_rl_entries, bt_dev.le.rl_entries, "Incorrect entries count"); in ZTEST() 115 bt_dev.le.rl_size = 1; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_init/src/ |
D | main.c | 25 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 51 bt_dev.id_count = 1; in ZTEST() 56 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 57 bt_dev.id_count); in ZTEST() 60 expect_single_call_k_work_init_delayable(&bt_dev.rpa_update); in ZTEST() 84 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 85 bt_dev.id_count); in ZTEST() 88 expect_single_call_k_work_init_delayable(&bt_dev.rpa_update); in ZTEST()
|
D | test_suite_setup_static_random_identity.c | 33 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup() 84 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 105 bt_addr_copy(&bt_dev.random_addr.a, &BT_STATIC_RANDOM_LE_ADDR_1->a); in ZTEST() 111 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 112 bt_dev.id_count); in ZTEST() 114 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 118 expect_single_call_k_work_init_delayable(&bt_dev.rpa_update); in ZTEST() 140 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 186 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/ |
D | main.c | 34 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 44 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup() 92 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 114 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 115 bt_dev.id_count); in ZTEST() 117 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 146 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 169 zassert_true(bt_dev.id_count == 2, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 170 bt_dev.id_count); in ZTEST() 172 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() [all …]
|
D | test_suite_bt_settings_enabled.c | 35 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup() 70 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 71 bt_dev.id_count); in ZTEST() 110 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 125 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 132 zassert_mem_equal(&bt_dev.id_addr[0], BT_STATIC_RANDOM_LE_ADDR_1, sizeof(bt_addr_le_t), in ZTEST() 134 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 135 bt_dev.id_count); in ZTEST() 158 uint16_t *vs_commands = (uint16_t *)bt_dev.vs_commands; in ZTEST() 173 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | id.c | 134 if (bt_addr_eq(addr, &bt_dev.random_addr.a)) { in set_random_address() 159 bt_addr_copy(&bt_dev.random_addr.a, addr); in set_random_address() 160 bt_dev.random_addr.type = BT_ADDR_LE_RANDOM; in set_random_address() 176 BT_DEV_FEAT_LE_EXT_ADV(bt_dev.le.features))) { in bt_id_set_adv_random_addr() 230 if (adv->id >= bt_dev.id_count) { in adv_rpa_expired() 259 if (adv->id >= bt_dev.id_count) { in adv_rpa_clear_data() 266 bt_addr_copy(&bt_dev.rpa[adv->id], BT_ADDR_NONE); in adv_rpa_clear_data() 277 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED))) { in le_rpa_invalidate() 278 atomic_clear_bit(bt_dev.flags, BT_DEV_RPA_VALID); in le_rpa_invalidate() 283 if (bt_dev.id_count == 0) { in le_rpa_invalidate() [all …]
|
D | settings.c | 125 if (!atomic_test_bit(bt_dev.flags, BT_DEV_ENABLE)) { in set_setting() 144 if (atomic_test_bit(bt_dev.flags, BT_DEV_PRESET_ID)) { in set_setting() 149 len = read_cb(cb_arg, &bt_dev.id_addr, sizeof(bt_dev.id_addr)); in set_setting() 150 if (len < sizeof(bt_dev.id_addr[0])) { in set_setting() 156 LOG_HEXDUMP_DBG(&bt_dev.id_addr, len, "data read"); in set_setting() 158 (void)memset(bt_dev.id_addr, 0, in set_setting() 159 sizeof(bt_dev.id_addr)); in set_setting() 160 bt_dev.id_count = 0U; in set_setting() 164 bt_dev.id_count = len / sizeof(bt_dev.id_addr[0]); in set_setting() 165 for (i = 0; i < bt_dev.id_count; i++) { in set_setting() [all …]
|
D | ecc.c | 85 if (!BT_CMD_TEST(bt_dev.supported_commands, 34, 1) || in bt_pub_key_gen() 86 !BT_CMD_TEST(bt_dev.supported_commands, 34, 2)) { in bt_pub_key_gen() 92 if (!BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_gen() 95 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen() 115 if (atomic_test_and_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_pub_key_gen() 119 atomic_clear_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen() 125 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_gen() 144 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_hci_disrupted() 158 BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_get() 162 if (atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_pub_key_get() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_adv_random_addr_check/src/ |
D | main.c | 21 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 92 atomic_clear_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST() 93 atomic_clear_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST() 121 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST() 122 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST() 125 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST() 155 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST() 159 bt_dev.id_addr[BT_ID_DEFAULT].type = BT_ADDR_LE_RANDOM; in ZTEST() 189 atomic_set_bit(bt_dev.flags, BT_DEV_SCANNING); in ZTEST() 192 bt_dev.id_addr[adv_param.id].type = BT_ADDR_LE_RANDOM; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/ |
D | test_suite_bt_settings_enabled.c | 31 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup() 66 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 67 bt_dev.id_count); in ZTEST() 111 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 118 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 120 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 121 bt_dev.id_count); in ZTEST() 148 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 155 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 157 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() [all …]
|
D | main.c | 28 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in tc_setup() 56 zassert_true(bt_dev.id_count == 0, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 57 bt_dev.id_count); in ZTEST() 100 zassert_mem_equal(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR, sizeof(bt_addr_le_t), in ZTEST() 102 zassert_true(bt_dev.id_count == 1, "Incorrect value '%d' was set to bt_dev.id_count", in ZTEST() 103 bt_dev.id_count); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_get_local/src/ |
D | test_suite_invalid_inputs.c | 56 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 79 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 109 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 110 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST() 150 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 151 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST() 196 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 197 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST() 202 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 249 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() [all …]
|
D | main.c | 26 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 54 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 62 memset(bt_dev.id_addr, 0x00, sizeof(bt_dev.id_addr)); in ZTEST() 63 bt_addr_le_copy(&bt_dev.id_addr[i], BT_RPA_LE_ADDR); in ZTEST() 97 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST() 98 bt_addr_le_copy(&bt_dev.random_addr, BT_RPA_LE_ADDR); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_create_conn_own_addr/src/ |
D | main.c | 23 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 53 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_LE_ADDR); in ZTEST() 83 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 86 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in ZTEST() 118 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST() 150 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST() 152 bt_dev.le.features[(BT_LE_FEAT_BIT_PRIVACY) >> 3] |= BIT((BT_LE_FEAT_BIT_PRIVACY)&7); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_private_addr/src/ |
D | main.c | 25 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 26 bt_addr_le_copy(&bt_dev.random_addr, &bt_addr_le_none); in fff_reset_rule_before() 44 bt_addr_copy(&bt_dev.random_addr.a, BT_ADDR); in bt_rand_custom_fake() 56 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in bt_rpa_create_custom_fake() 87 expect_single_call_bt_rpa_create(bt_dev.irk[id]); in ZTEST() 89 zassert_true(atomic_test_bit(bt_dev.flags, BT_DEV_RPA_VALID), in ZTEST() 113 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_scan_own_addr/src/ |
D | main.c | 24 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 42 bt_addr_copy(&bt_dev.random_addr.a, BT_ADDR); in bt_rand_custom_fake() 102 bt_addr_le_copy(&bt_dev.id_addr[BT_ID_DEFAULT], BT_RPA_LE_ADDR); in ZTEST() 105 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in ZTEST() 137 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST() 169 atomic_set_bit(bt_dev.flags, BT_DEV_RPA_VALID); in ZTEST() 171 bt_dev.le.features[(BT_LE_FEAT_BIT_PRIVACY) >> 3] |= BIT((BT_LE_FEAT_BIT_PRIVACY)&7); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/id/bt_id_set_adv_private_addr/src/ |
D | main.c | 25 memset(&bt_dev, 0x00, sizeof(struct bt_dev)); in fff_reset_rule_before() 26 bt_addr_le_copy(&bt_dev.random_addr, &bt_addr_le_none); in fff_reset_rule_before() 28 bt_addr_copy(&bt_dev.rpa[BT_ID_DEFAULT], BT_ADDR_NONE); in fff_reset_rule_before() 47 bt_addr_copy(&bt_dev.random_addr.a, BT_ADDR); in bt_rand_custom_fake() 59 bt_addr_copy(&bt_dev.random_addr.a, &BT_RPA_LE_ADDR->a); in bt_rpa_create_custom_fake() 89 expect_single_call_bt_rpa_create(bt_dev.irk[adv_param.id]); in ZTEST() 92 zassert_true(atomic_test_bit(bt_dev.flags, BT_DEV_RPA_VALID), in ZTEST() 123 expect_single_call_bt_rpa_create(bt_dev.irk[adv_param.id]); in ZTEST()
|