Searched refs:rpa (Results 1 – 9 of 9) sorted by relevance
/net/bluetooth/ |
D | hci_request.c | 634 static void set_random_addr(struct hci_request *req, bdaddr_t *rpa); 658 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address() 664 set_random_addr(req, &hdev->rpa); in hci_update_random_address() 869 static void set_random_addr(struct hci_request *req, bdaddr_t *rpa) in set_random_addr() argument 890 hci_req_add(req, HCI_OP_LE_SET_RANDOM_ADDR, 6, rpa); in set_random_addr()
|
D | smp.h | 193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa);
|
D | smp.c | 517 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa) in smp_generate_rpa() argument 525 get_random_bytes(&rpa->b[3], 3); in smp_generate_rpa() 527 rpa->b[5] &= 0x3f; /* Clear two most significant bits */ in smp_generate_rpa() 528 rpa->b[5] |= 0x40; /* Set second most significant bit */ in smp_generate_rpa() 530 err = smp_ah(irk, &rpa->b[3], rpa->b); in smp_generate_rpa() 534 bt_dev_dbg(hdev, "RPA %pMR", rpa); in smp_generate_rpa() 2613 bdaddr_t rpa; in smp_cmd_ident_addr_info() local 2661 bacpy(&rpa, &hcon->dst); in smp_cmd_ident_addr_info() 2663 bacpy(&rpa, BDADDR_ANY); in smp_cmd_ident_addr_info() 2666 smp->id_addr_type, smp->irk, &rpa); in smp_cmd_ident_addr_info()
|
D | hci_core.c | 1189 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa) in hci_find_irk_by_rpa() argument 1196 if (!bacmp(&irk->rpa, rpa)) { in hci_find_irk_by_rpa() 1203 if (smp_irk_matches(hdev, irk->val, rpa)) { in hci_find_irk_by_rpa() 1204 bacpy(&irk->rpa, rpa); in hci_find_irk_by_rpa() 1333 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument 1350 bacpy(&irk->rpa, rpa); in hci_add_irk()
|
D | hci_sync.c | 893 static int hci_set_random_addr_sync(struct hci_dev *hdev, bdaddr_t *rpa) in hci_set_random_addr_sync() argument 913 6, rpa, HCI_CMD_TIMEOUT); in hci_set_random_addr_sync() 917 bool rpa, u8 *own_addr_type) in hci_update_random_address_sync() argument 925 if (rpa) { in hci_update_random_address_sync() 938 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address_sync() 944 err = hci_set_random_addr_sync(hdev, &hdev->rpa); in hci_update_random_address_sync() 6523 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_get_random_address() 6529 bacpy(rand_addr, &hdev->rpa); in hci_get_random_address()
|
D | hci_debugfs.c | 682 16, hdev->irk, &hdev->rpa); in identity_show() 830 16, irk->val, &irk->rpa); in identity_resolving_keys_show()
|
D | hci_conn.c | 1430 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le() 1431 dst = &irk->rpa; in hci_connect_le()
|
D | hci_event.c | 1359 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr() 1420 if (!bacmp(&hdev->rpa, &cp->bdaddr)) { in hci_cc_le_set_adv_set_random_addr() 5585 bacpy(&conn->init_addr, &conn->hdev->rpa); in le_conn_update_addr() 5669 bacpy(&conn->init_addr, &hdev->rpa); in le_conn_complete_evt()
|
D | mgmt.c | 9531 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
|