Lines Matching refs:bd_addr

72 bool BTM_SecAddBleDevice(const RawAddress& bd_addr, BD_NAME bd_name,  in BTM_SecAddBleDevice()  argument
75 return bluetooth::shim::BTM_SecAddBleDevice(bd_addr, bd_name, dev_type, in BTM_SecAddBleDevice()
81 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_SecAddBleDevice()
85 p_dev_rec->bd_addr = bd_addr; in BTM_SecAddBleDevice()
86 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); in BTM_SecAddBleDevice()
87 p_dev_rec->ble_hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_LE); in BTM_SecAddBleDevice()
97 bd_addr.ToString().c_str()); in BTM_SecAddBleDevice()
110 p_dev_rec->ble.pseudo_addr = bd_addr; in BTM_SecAddBleDevice()
112 tBTM_INQ_INFO* p_info = BTM_InqDbRead(bd_addr); in BTM_SecAddBleDevice()
138 bool BTM_SecAddBleKey(const RawAddress& bd_addr, tBTM_LE_KEY_VALUE* p_le_key, in BTM_SecAddBleKey() argument
141 return bluetooth::shim::BTM_SecAddBleKey(bd_addr, p_le_key, key_type); in BTM_SecAddBleKey()
146 p_dev_rec = btm_find_dev(bd_addr); in BTM_SecAddBleKey()
152 << " Wrong Type, or No Device record for bdaddr: " << bd_addr in BTM_SecAddBleKey()
157 VLOG(1) << __func__ << " BDA: " << bd_addr << ", Type: " << key_type; in BTM_SecAddBleKey()
159 btm_sec_save_le_key(bd_addr, key_type, p_le_key, false); in BTM_SecAddBleKey()
347 void BTM_SecurityGrant(const RawAddress& bd_addr, uint8_t res) { in BTM_SecurityGrant() argument
349 return bluetooth::shim::BTM_SecurityGrant(bd_addr, res); in BTM_SecurityGrant()
354 SMP_SecurityGrant(bd_addr, res_smp); in BTM_SecurityGrant()
373 void BTM_BlePasskeyReply(const RawAddress& bd_addr, uint8_t res, in BTM_BlePasskeyReply() argument
378 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_BlePasskeyReply()
389 SMP_PasskeyReply(bd_addr, res_smp, passkey); in BTM_BlePasskeyReply()
404 void BTM_BleConfirmReply(const RawAddress& bd_addr, uint8_t res) { in BTM_BleConfirmReply() argument
408 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_BleConfirmReply()
419 SMP_ConfirmReply(bd_addr, res_smp); in BTM_BleConfirmReply()
437 void BTM_BleOobDataReply(const RawAddress& bd_addr, uint8_t res, uint8_t len, in BTM_BleOobDataReply() argument
440 return bluetooth::shim::BTM_BleOobDataReply(bd_addr, res, len, p_data); in BTM_BleOobDataReply()
443 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_BleOobDataReply()
453 SMP_OobDataReply(bd_addr, res_smp, len, p_data); in BTM_BleOobDataReply()
469 void BTM_BleSecureConnectionOobDataReply(const RawAddress& bd_addr, in BTM_BleSecureConnectionOobDataReply() argument
472 return bluetooth::shim::BTM_BleSecureConnectionOobDataReply(bd_addr, p_c, in BTM_BleSecureConnectionOobDataReply()
475 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_BleSecureConnectionOobDataReply()
493 oob.peer_oob_data.addr_rcvd_from.bda = bd_addr; in BTM_BleSecureConnectionOobDataReply()
515 void BTM_BleSetPrefConnParams(const RawAddress& bd_addr, uint16_t min_conn_int, in BTM_BleSetPrefConnParams() argument
520 bd_addr, min_conn_int, max_conn_int, slave_latency, supervision_tout); in BTM_BleSetPrefConnParams()
522 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in BTM_BleSetPrefConnParams()
607 if (p_dev_rec->bd_addr == remote_bda && in BTM_ReadDevInfo()
651 if (btm_bda_to_acl(p_dev_rec->bd_addr, transport) != NULL) { in BTM_ReadConnectedTransportAddress()
652 *remote_bda = p_dev_rec->bd_addr; in BTM_ReadConnectedTransportAddress()
655 *remote_bda = p_dev_rec->bd_addr; in BTM_ReadConnectedTransportAddress()
757 bool BTM_UseLeLink(const RawAddress& bd_addr) { in BTM_UseLeLink() argument
759 return bluetooth::shim::BTM_UseLeLink(bd_addr); in BTM_UseLeLink()
766 p = btm_bda_to_acl(bd_addr, BT_TRANSPORT_BR_EDR); in BTM_UseLeLink()
770 p = btm_bda_to_acl(bd_addr, BT_TRANSPORT_LE); in BTM_UseLeLink()
774 BTM_ReadDevInfo(bd_addr, &dev_type, &addr_type); in BTM_UseLeLink()
790 tBTM_STATUS BTM_SetBleDataLength(const RawAddress& bd_addr, in BTM_SetBleDataLength() argument
793 return bluetooth::shim::BTM_SetBleDataLength(bd_addr, tx_pdu_length); in BTM_SetBleDataLength()
795 tACL_CONN* p_acl = btm_bda_to_acl(bd_addr, BT_TRANSPORT_LE); in BTM_SetBleDataLength()
861 const RawAddress& bd_addr, in BTM_BleReadPhy() argument
864 return bluetooth::shim::BTM_BleReadPhy(bd_addr, cb); in BTM_BleReadPhy()
868 tACL_CONN* p_acl = btm_bda_to_acl(bd_addr, BT_TRANSPORT_LE); in BTM_BleReadPhy()
914 void BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys, uint8_t rx_phys, in BTM_BleSetPhy() argument
917 return bluetooth::shim::BTM_BleSetPhy(bd_addr, tx_phys, rx_phys, in BTM_BleSetPhy()
920 tACL_CONN* p_acl = btm_bda_to_acl(bd_addr, BT_TRANSPORT_LE); in BTM_BleSetPhy()
1062 tL2CAP_LE_RESULT_CODE btm_ble_start_sec_check(const RawAddress& bd_addr, in btm_ble_start_sec_check() argument
1073 (*p_callback)(&bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_MODE_UNSUPPORTED); in btm_ble_start_sec_check()
1077 BTM_GetSecurityFlagsByTransport(bd_addr, &sec_flag, BT_TRANSPORT_LE); in btm_ble_start_sec_check()
1103 is_originator, bd_addr, p_serv_rec->security_flags); in btm_ble_start_sec_check()
1111 p_callback(&bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_SUCCESS); in btm_ble_start_sec_check()
1137 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in btm_ble_start_sec_check()
1139 BTM_SetEncryption(bd_addr, BT_TRANSPORT_LE, p_callback, p_ref_data, in btm_ble_start_sec_check()
1194 void btm_ble_increment_sign_ctr(const RawAddress& bd_addr, bool is_local) { in btm_ble_increment_sign_ctr() argument
1199 p_dev_rec = btm_find_dev(bd_addr); in btm_ble_increment_sign_ctr()
1221 bool btm_ble_get_enc_key_type(const RawAddress& bd_addr, uint8_t* p_key_types) { in btm_ble_get_enc_key_type() argument
1226 p_dev_rec = btm_find_dev(bd_addr); in btm_ble_get_enc_key_type()
1242 bool btm_get_local_div(const RawAddress& bd_addr, uint16_t* p_div) { in btm_get_local_div() argument
1245 VLOG(1) << __func__ << " bd_addr: " << bd_addr; in btm_get_local_div()
1248 p_dev_rec = btm_find_dev(bd_addr); in btm_get_local_div()
1273 void btm_sec_save_le_key(const RawAddress& bd_addr, tBTM_LE_KEY_TYPE key_type, in btm_sec_save_le_key() argument
1282 VLOG(1) << "bd_addr:" << bd_addr; in btm_sec_save_le_key()
1284 if ((p_rec = btm_find_dev(bd_addr)) != NULL && in btm_sec_save_le_key()
1286 btm_ble_init_pseudo_addr(p_rec, bd_addr); in btm_sec_save_le_key()
1314 __func__, p_rec->ble.key_type, p_rec->bd_addr.ToString().c_str(), in btm_sec_save_le_key()
1318 p_rec->bd_addr = p_keys->pid_key.identity_addr; in btm_sec_save_le_key()
1379 << " updated for BDA: " << bd_addr << " (btm_sec_save_le_key)"; in btm_sec_save_le_key()
1387 (*btm_cb.api.p_le_callback)(BTM_LE_KEY_EVT, bd_addr, &cb_data); in btm_sec_save_le_key()
1393 << " called for Unknown BDA or type: " << bd_addr in btm_sec_save_le_key()
1410 void btm_ble_update_sec_key_size(const RawAddress& bd_addr, in btm_ble_update_sec_key_size() argument
1417 p_rec = btm_find_dev(bd_addr); in btm_ble_update_sec_key_size()
1432 uint8_t btm_ble_read_sec_key_size(const RawAddress& bd_addr) { in btm_ble_read_sec_key_size() argument
1435 p_rec = btm_find_dev(bd_addr); in btm_ble_read_sec_key_size()
1451 void btm_ble_link_sec_check(const RawAddress& bd_addr, in btm_ble_link_sec_check() argument
1454 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in btm_ble_link_sec_check()
1519 tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr, in btm_ble_set_encryption() argument
1523 tBTM_SEC_DEV_REC* p_rec = btm_find_dev(bd_addr); in btm_ble_set_encryption()
1544 cmd = btm_ble_start_encrypt(bd_addr, false, NULL); in btm_ble_set_encryption()
1555 btm_ble_link_sec_check(bd_addr, auth_req, &sec_req_act); in btm_ble_set_encryption()
1564 cmd = btm_ble_start_encrypt(bd_addr, false, NULL); in btm_ble_set_encryption()
1569 if (SMP_Pair(bd_addr) == SMP_STARTED) { in btm_ble_set_encryption()
1604 if (!smp_proc_ltk_request(p_dev_rec->bd_addr)) { in btm_ble_ltk_request()
1605 btm_ble_ltk_request_reply(p_dev_rec->bd_addr, false, Octet16{0}); in btm_ble_ltk_request()
1659 void btm_ble_link_encrypted(const RawAddress& bd_addr, uint8_t encr_enable) { in btm_ble_link_encrypted() argument
1660 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in btm_ble_link_encrypted()
1674 smp_link_encrypted(bd_addr, encr_enable); in btm_ble_link_encrypted()
1748 BTM_LE_IO_REQ_EVT, p_dev_rec->bd_addr, (tBTM_LE_EVT_DATA*)p_data); in btm_ble_io_capabilities_req()
1832 BTM_LE_IO_REQ_EVT, p_dev_rec->bd_addr, (tBTM_LE_EVT_DATA*)p_data); in btm_ble_br_keys_req()
1908 uint8_t btm_proc_smp_cback(tSMP_EVT event, const RawAddress& bd_addr, in btm_proc_smp_cback() argument
1910 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); in btm_proc_smp_cback()
1940 btm_cb.pairing_bda = bd_addr; in btm_proc_smp_cback()
1951 (*btm_cb.api.p_le_callback)(event, bd_addr, in btm_proc_smp_cback()
1956 p_dev_rec = btm_find_dev(bd_addr); in btm_proc_smp_cback()
2003 if (bd_addr == btm_cb.pairing_bda) { in btm_proc_smp_cback()
2048 bool BTM_BleDataSignature(const RawAddress& bd_addr, uint8_t* p_text, in BTM_BleDataSignature() argument
2051 return bluetooth::shim::BTM_BleDataSignature(bd_addr, p_text, len, in BTM_BleDataSignature()
2054 tBTM_SEC_DEV_REC* p_rec = btm_find_dev(bd_addr); in BTM_BleDataSignature()
2080 btm_ble_increment_sign_ctr(bd_addr, true); in BTM_BleDataSignature()
2110 bool BTM_BleVerifySignature(const RawAddress& bd_addr, uint8_t* p_orig, in BTM_BleVerifySignature() argument
2113 return bluetooth::shim::BTM_BleVerifySignature(bd_addr, p_orig, len, in BTM_BleVerifySignature()
2117 tBTM_SEC_DEV_REC* p_rec = btm_find_dev(bd_addr); in BTM_BleVerifySignature()
2133 btm_ble_increment_sign_ctr(bd_addr, false); in BTM_BleVerifySignature()