/external/bluetooth/bluedroid/stack/btm/ |
D | btm_dev.c | 63 tBTM_SEC_DEV_REC *p_dev_rec; in BTM_SecAddDevice() local 67 p_dev_rec = btm_find_dev (bd_addr); in BTM_SecAddDevice() 68 if (!p_dev_rec) in BTM_SecAddDevice() 76 p_dev_rec = &btm_cb.sec_dev_rec[i]; in BTM_SecAddDevice() 79 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC)); in BTM_SecAddDevice() 80 p_dev_rec->sec_flags = BTM_SEC_IN_USE; in BTM_SecAddDevice() 81 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddDevice() 82 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr); in BTM_SecAddDevice() 87 memset(&p_dev_rec->conn_params, 0xff, sizeof(tBTM_LE_CONN_PRAMS)); in BTM_SecAddDevice() 93 if (!p_dev_rec) in BTM_SecAddDevice() [all …]
|
D | btm_sec.c | 57 static tBTM_STATUS btm_sec_execute_procedure (tBTM_SEC_DEV_REC *p_dev_rec); 58 static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec); 59 static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec); 60 static BOOLEAN btm_sec_start_encryption (tBTM_SEC_DEV_REC *p_dev_rec); 64 static tBTM_STATUS btm_sec_dd_create_conn (tBTM_SEC_DEV_REC *p_dev_rec); 76 static void btm_send_link_key_notif (tBTM_SEC_DEV_REC *p_dev_rec); 77 static BOOLEAN btm_sec_check_prefetch_pin (tBTM_SEC_DEV_REC *p_dev_rec); 79 static UINT8 btm_sec_start_authorization (tBTM_SEC_DEV_REC *p_dev_rec); 82 static tBTM_STATUS btm_sec_send_hci_disconnect (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason); 268 tBTM_SEC_DEV_REC *p_dev_rec; in BTM_GetSecurityFlags() local [all …]
|
D | btm_ble.c | 67 tBTM_SEC_DEV_REC *p_dev_rec; in BTM_SecAddBleDevice() local 72 p_dev_rec = btm_find_dev (bd_addr); in BTM_SecAddBleDevice() 74 if (!p_dev_rec) in BTM_SecAddBleDevice() 85 p_dev_rec = &btm_cb.sec_dev_rec[i]; in BTM_SecAddBleDevice() 88 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC)); in BTM_SecAddBleDevice() 89 p_dev_rec->sec_flags = BTM_SEC_IN_USE; in BTM_SecAddBleDevice() 90 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddBleDevice() 91 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr); in BTM_SecAddBleDevice() 94 p_dev_rec->conn_params.min_conn_int = in BTM_SecAddBleDevice() 95 p_dev_rec->conn_params.max_conn_int = in BTM_SecAddBleDevice() [all …]
|
D | btm_ble_addr.c | 215 tBTM_SEC_DEV_REC *p_dev_rec = NULL; in btm_ble_resolve_address_cmpl() local 221 p_dev_rec = &btm_cb.sec_dev_rec[p_mgnt_cb->index]; in btm_ble_resolve_address_cmpl() 226 (* p_mgnt_cb->p_resolve_cback)(p_dev_rec, p_mgnt_cb->p); in btm_ble_resolve_address_cmpl() 274 tBTM_SEC_DEV_REC *p_dev_rec; in btm_ble_match_random_bda() local 288 p_dev_rec = &btm_cb.sec_dev_rec[rec_index]; in btm_ble_match_random_bda() 290 …BTM_TRACE_ERROR2("sec_flags = %02x device_type = %d", p_dev_rec->sec_flags, p_dev_rec->device_type… in btm_ble_match_random_bda() 292 if ((p_dev_rec->device_type == BT_DEVICE_TYPE_BLE) && in btm_ble_match_random_bda() 293 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) in btm_ble_match_random_bda() 296 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN, in btm_ble_match_random_bda() 364 tBTM_SEC_DEV_REC *p_dev_rec = NULL; in btm_ble_map_bda_to_conn_bda() local [all …]
|
D | btm_acl.c | 44 static void btm_process_remote_ext_features_page (tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_dev_rec, 194 tBTM_SEC_DEV_REC *p_dev_rec = NULL; in btm_acl_created() local 261 p_dev_rec = btm_find_dev_by_handle (hci_handle); in btm_acl_created() 264 if (p_dev_rec ) in btm_acl_created() 266 BTM_TRACE_DEBUG1 ("device_type=0x%x", p_dev_rec->device_type); in btm_acl_created() 270 if (p_dev_rec && !is_le_link) in btm_acl_created() 273 if ((p_dev_rec->num_read_pages) && in btm_acl_created() 274 … (p_dev_rec->num_read_pages <= (HCI_EXT_FEATURES_PAGE_MAX + 1)) /* sanity check */) in btm_acl_created() 276 memcpy (p->peer_lmp_features, p_dev_rec->features, in btm_acl_created() 277 (HCI_FEATURE_BYTES_PER_PAGE * p_dev_rec->num_read_pages)); in btm_acl_created() [all …]
|
D | btm_ble_bgconn.c | 71 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); in btm_add_dev_to_controller() local 77 if (p_dev_rec != NULL && in btm_add_dev_to_controller() 78 p_dev_rec->device_type == BT_DEVICE_TYPE_BLE) in btm_add_dev_to_controller() 83 if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_PUBLIC || !BTM_BLE_IS_RESOLVE_BDA(bd_addr)) in btm_add_dev_to_controller() 85 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); in btm_add_dev_to_controller() 87 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() 88 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) in btm_add_dev_to_controller() 90 …started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.static_addr_type, p_dev_rec->ble.static_ad… in btm_add_dev_to_controller() 97 … started = btsnd_hcic_ble_remove_from_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); in btm_add_dev_to_controller() 99 if (memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() [all …]
|
D | btm_int.h | 976 tBTM_SEC_DEV_REC *p_dev_rec, 1093 extern void btm_sec_free_dev (tBTM_SEC_DEV_REC *p_dev_rec); 1133 extern void btm_sec_dev_rec_cback_event (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res); 1136 extern void btm_sec_clear_ble_keys (tBTM_SEC_DEV_REC *p_dev_rec);
|
/external/bluetooth/bluedroid/stack/l2cap/ |
D | l2c_ble.c | 106 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev(p_lcb->remote_bd_addr); in L2CA_InternalBleConnUpdate() local 109 (UINT16)((p_dev_rec->conn_params.min_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? in L2CA_InternalBleConnUpdate() 110 p_dev_rec->conn_params.min_conn_int : BTM_BLE_CONN_INT_MIN_DEF), in L2CA_InternalBleConnUpdate() 111 (UINT16)((p_dev_rec->conn_params.max_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? in L2CA_InternalBleConnUpdate() 112 p_dev_rec->conn_params.max_conn_int : BTM_BLE_CONN_INT_MAX_DEF), in L2CA_InternalBleConnUpdate() 113 (UINT16)((p_dev_rec->conn_params.slave_latency != BTM_BLE_CONN_PARAM_UNDEF) ? in L2CA_InternalBleConnUpdate() 114 p_dev_rec->conn_params.slave_latency : BTM_BLE_CONN_SLAVE_LATENCY_DEF), in L2CA_InternalBleConnUpdate() 115 (UINT16)((p_dev_rec->conn_params.supervision_tout != BTM_BLE_CONN_PARAM_UNDEF) ? in L2CA_InternalBleConnUpdate() 116 p_dev_rec->conn_params.supervision_tout : BTM_BLE_CONN_TIMEOUT_DEF), in L2CA_InternalBleConnUpdate() 327 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda); in l2cble_scanner_conn_comp() local [all …]
|
D | l2c_utils.c | 2224 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_lcb->remote_bd_addr); in l2cu_create_conn_after_switch() local 2266 clock_offset = (p_dev_rec) ? p_dev_rec->clock_offset : 0; in l2cu_create_conn_after_switch()
|
/external/bluetooth/bluedroid/stack/smp/ |
D | smp_api.c | 227 tBTM_SEC_DEV_REC *p_dev_rec; in SMP_PasskeyReply() local 245 if ((p_dev_rec = btm_find_dev (bd_addr)) == NULL) in SMP_PasskeyReply()
|
D | smp_act.c | 149 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); in smp_send_pair_req() local 161 if (p_dev_rec) in smp_send_pair_req() 162 btm_sec_clear_ble_keys(p_dev_rec); in smp_send_pair_req() 359 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); in smp_proc_pair_cmd() local 363 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) in smp_proc_pair_cmd() 364 btm_sec_clear_ble_keys(p_dev_rec); in smp_proc_pair_cmd()
|
/external/bluetooth/bluedroid/stack/hid/ |
D | hidh_api.c | 580 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); in hid_known_hid_device() local 581 if ((p_dev_rec != NULL) && in hid_known_hid_device() 582 ((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == BTM_COD_MAJOR_PERIPHERAL )) in hid_known_hid_device()
|
/external/bluetooth/bluedroid/bta/hh/ |
D | bta_hh_le.c | 1298 tBTM_SEC_DEV_REC *p_dev_rec; in bta_hh_start_security() local 1300 p_dev_rec = btm_find_dev(p_cb->addr); in bta_hh_start_security() 1301 if (p_dev_rec) in bta_hh_start_security() 1303 if (p_dev_rec->sec_state == BTM_SEC_STATE_ENCRYPTING || in bta_hh_start_security() 1304 p_dev_rec->sec_state == BTM_SEC_STATE_AUTHENTICATING) in bta_hh_start_security()
|