Home
last modified time | relevance | path

Searched refs:adv_index (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/privacy/peripheral/src/
Dtester_rpa_expired.c22 static uint8_t adv_index; variable
29 adv_index = data->data[0]; in data_cb()
46 if (bt_addr_le_eq(&adv_set_data[adv_index].old_addr, BT_ADDR_LE_ANY)) { in test_address()
47 bt_addr_le_copy(&adv_set_data[adv_index].old_addr, addr); in test_address()
48 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
52 diff_ms = k_uptime_get() - adv_set_data[adv_index].old_time; in test_address()
58 printk("Ad set %d Old ", adv_index); in test_address()
59 print_address(&adv_set_data[adv_index].old_addr); in test_address()
60 printk("Ad set %d New ", adv_index); in test_address()
68 if ((adv_set_data[adv_index].rpa_rotations % CONFIG_BT_EXT_ADV_MAX_ADV_SET) < 2) { in test_address()
[all …]
Dtester_rpa_rotation.c23 static uint8_t adv_index; variable
30 adv_index = data->data[0]; in data_cb()
79 if (bt_addr_le_eq(&adv_set_data[adv_index].old_addr, BT_ADDR_LE_ANY)) { in test_address()
80 bt_addr_le_copy(&adv_set_data[adv_index].old_addr, addr); in test_address()
81 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
86 if (bt_addr_le_eq(&adv_set_data[adv_index].old_addr, addr)) { in test_address()
89 adv_set_data[adv_index].addr_set = true; in test_address()
90 printk("Ad set %d Old ", adv_index); in test_address()
91 print_address(&adv_set_data[adv_index].old_addr); in test_address()
92 printk("Ad set %d New ", adv_index); in test_address()
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/shell/
Dbt.c641 uint8_t adv_index = bt_le_ext_adv_get_index(adv); in adv_rpa_expired() local
643 bool keep_rpa = atomic_test_bit(adv_set_opt[adv_index], in adv_rpa_expired()
646 adv_index, adv, in adv_rpa_expired()
2058 uint8_t adv_index; in cmd_adv_create() local
2072 adv_index = bt_le_ext_adv_get_index(adv); in cmd_adv_create()
2073 adv_sets[adv_index] = adv; in cmd_adv_create()
2075 atomic_clear(adv_set_opt[adv_index]); in cmd_adv_create()
2076 atomic_set_bit_to(adv_set_opt[adv_index], SHELL_ADV_OPT_CONNECTABLE, in cmd_adv_create()
2078 atomic_set_bit_to(adv_set_opt[adv_index], SHELL_ADV_OPT_EXT_ADV, in cmd_adv_create()
2081 shell_print(sh, "Created adv id: %d, adv: %p", adv_index, adv); in cmd_adv_create()