Home
last modified time | relevance | path

Searched refs:le_db_index (Results 1 – 2 of 2) sorted by relevance

/btstack/test/le_device_db_tlv/
H A Dle_device_db_tlv_test.cpp240 int le_db_index = 10; in TEST() local
242 le_device_db_encryption_set(le_db_index, ediv, NULL, NULL, encryption_key_size, 1, 1, 1); in TEST()
252 …le_device_db_encryption_get(le_db_index, &expected_ediv, expected_rand, expected_ltk, &expected_en… in TEST()
266 int le_db_index = le_device_db_add(BD_ADDR_TYPE_LE_PUBLIC, addr_zero, sm_key_zero); in TEST() local
267 CHECK_TRUE(le_db_index >= 0); in TEST()
269 le_device_db_encryption_set(le_db_index, ediv, NULL, NULL, encryption_key_size, 1, 1, 1); in TEST()
271 le_device_db_encryption_get(le_db_index, NULL, NULL, NULL, NULL, NULL, NULL, NULL); in TEST()
284 int le_db_index = le_device_db_add(BD_ADDR_TYPE_LE_PUBLIC, addr, sm_key); in TEST() local
285 CHECK_TRUE(le_db_index >= 0); in TEST()
286 le_device_db_encryption_set(le_db_index, ediv, zero_rand, sm_key, encryption_key_size, 1, 1, 1); in TEST()
[all …]
/btstack/src/ble/
H A Dsm.c1456 int le_db_index = -1; in sm_store_bonding_information() local
1474 le_db_index = i; in sm_store_bonding_information()
1484 if ((le_db_index < 0) && (setup->sm_peer_addr_type == BD_ADDR_TYPE_LE_PUBLIC)){ in sm_store_bonding_information()
1495 le_db_index = i; in sm_store_bonding_information()
1503 if (le_db_index < 0) { in sm_store_bonding_information()
1504le_db_index = le_device_db_add(setup->sm_peer_addr_type, setup->sm_peer_address, setup->sm_peer_ir… in sm_store_bonding_information()
1508 if (le_db_index >= 0){ in sm_store_bonding_information()
1512 hci_remove_le_device_db_entry_from_resolving_list(le_db_index); in sm_store_bonding_information()
1514 hci_load_le_device_db_entry_into_resolving_list(le_db_index); in sm_store_bonding_information()
1519 …ENTITY_CREATED, sm_conn->sm_handle, setup->sm_peer_addr_type, setup->sm_peer_address, le_db_index); in sm_store_bonding_information()
[all …]