Home
last modified time | relevance | path

Searched refs:rpa (Results 1 – 8 of 8) sorted by relevance

/net/bluetooth/
Dsmp.h193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa);
Dsmp.c530 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa) in smp_generate_rpa() argument
541 get_random_bytes(&rpa->b[3], 3); in smp_generate_rpa()
543 rpa->b[5] &= 0x3f; /* Clear two most significant bits */ in smp_generate_rpa()
544 rpa->b[5] |= 0x40; /* Set second most significant bit */ in smp_generate_rpa()
546 err = smp_ah(smp->tfm_aes, irk, &rpa->b[3], rpa->b); in smp_generate_rpa()
550 BT_DBG("RPA %pMR", rpa); in smp_generate_rpa()
2543 bdaddr_t rpa; in smp_cmd_ident_addr_info() local
2591 bacpy(&rpa, &hcon->dst); in smp_cmd_ident_addr_info()
2593 bacpy(&rpa, BDADDR_ANY); in smp_cmd_ident_addr_info()
2596 smp->id_addr_type, smp->irk, &rpa); in smp_cmd_ident_addr_info()
Dhci_core.c2286 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa) in hci_find_irk_by_rpa() argument
2292 if (!bacmp(&irk->rpa, rpa)) { in hci_find_irk_by_rpa()
2299 if (smp_irk_matches(hdev, irk->val, rpa)) { in hci_find_irk_by_rpa()
2300 bacpy(&irk->rpa, rpa); in hci_find_irk_by_rpa()
2409 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument
2426 bacpy(&irk->rpa, rpa); in hci_add_irk()
Dhci_request.c1388 static void set_random_addr(struct hci_request *req, bdaddr_t *rpa) in set_random_addr() argument
1409 hci_req_add(req, HCI_OP_LE_SET_RANDOM_ADDR, 6, rpa); in set_random_addr()
1428 !bacmp(&hdev->random_addr, &hdev->rpa)) in hci_update_random_address()
1431 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address()
1437 set_random_addr(req, &hdev->rpa); in hci_update_random_address()
Dhci_debugfs.c688 16, hdev->irk, &hdev->rpa); in identity_show()
865 16, irk->val, &irk->rpa); in identity_resolving_keys_show()
Dhci_conn.c883 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le()
884 dst = &irk->rpa; in hci_connect_le()
Dmgmt.c6795 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
Dhci_event.c4501 bacpy(&conn->init_addr, &hdev->rpa); in hci_le_conn_complete_evt()