Searched refs:rpa (Results 1 – 8 of 8) sorted by relevance
/net/bluetooth/ |
D | hci_request.c | 1494 !bacmp(&adv_instance->random_addr, &hdev->rpa)) in hci_get_random_address() 1500 !bacmp(&hdev->random_addr, &hdev->rpa)) in hci_get_random_address() 1504 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_get_random_address() 1510 bacpy(rand_addr, &hdev->rpa); in hci_get_random_address() 1878 static void set_random_addr(struct hci_request *req, bdaddr_t *rpa) in set_random_addr() argument 1899 hci_req_add(req, HCI_OP_LE_SET_RANDOM_ADDR, 6, rpa); in set_random_addr() 1918 !bacmp(&hdev->random_addr, &hdev->rpa)) in hci_update_random_address() 1921 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address() 1927 set_random_addr(req, &hdev->rpa); in hci_update_random_address()
|
D | smp.h | 193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa);
|
D | smp.c | 523 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa) in smp_generate_rpa() argument 534 get_random_bytes(&rpa->b[3], 3); in smp_generate_rpa() 536 rpa->b[5] &= 0x3f; /* Clear two most significant bits */ in smp_generate_rpa() 537 rpa->b[5] |= 0x40; /* Set second most significant bit */ in smp_generate_rpa() 539 err = smp_ah(irk, &rpa->b[3], rpa->b); in smp_generate_rpa() 543 BT_DBG("RPA %pMR", rpa); in smp_generate_rpa() 2534 bdaddr_t rpa; in smp_cmd_ident_addr_info() local 2582 bacpy(&rpa, &hcon->dst); in smp_cmd_ident_addr_info() 2584 bacpy(&rpa, BDADDR_ANY); in smp_cmd_ident_addr_info() 2587 smp->id_addr_type, smp->irk, &rpa); in smp_cmd_ident_addr_info()
|
D | hci_core.c | 2413 struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa) in hci_find_irk_by_rpa() argument 2419 if (!bacmp(&irk->rpa, rpa)) { in hci_find_irk_by_rpa() 2426 if (smp_irk_matches(hdev, irk->val, rpa)) { in hci_find_irk_by_rpa() 2427 bacpy(&irk->rpa, rpa); in hci_find_irk_by_rpa() 2536 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument 2553 bacpy(&irk->rpa, rpa); in hci_add_irk()
|
D | hci_debugfs.c | 612 16, hdev->irk, &hdev->rpa); in identity_show() 760 16, irk->val, &irk->rpa); in identity_resolving_keys_show()
|
D | hci_conn.c | 1003 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le() 1004 dst = &irk->rpa; in hci_connect_le()
|
D | hci_event.c | 4994 bacpy(&conn->init_addr, &conn->hdev->rpa); in le_conn_update_addr() 5072 bacpy(&conn->init_addr, &hdev->rpa); in le_conn_complete_evt()
|
D | mgmt.c | 7185 bacpy(&ev.rpa, &irk->rpa); in mgmt_new_irk()
|