/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 | 56 static tBTM_STATUS btm_sec_execute_procedure (tBTM_SEC_DEV_REC *p_dev_rec); 57 static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec); 58 static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec); 59 static BOOLEAN btm_sec_start_encryption (tBTM_SEC_DEV_REC *p_dev_rec); 63 static tBTM_STATUS btm_sec_dd_create_conn (tBTM_SEC_DEV_REC *p_dev_rec); 75 static void btm_send_link_key_notif (tBTM_SEC_DEV_REC *p_dev_rec); 76 static BOOLEAN btm_sec_check_prefetch_pin (tBTM_SEC_DEV_REC *p_dev_rec); 78 static UINT8 btm_sec_start_authorization (tBTM_SEC_DEV_REC *p_dev_rec); 81 static tBTM_STATUS btm_sec_send_hci_disconnect (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason); 267 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, 148 tBTM_SEC_DEV_REC *p_dev_rec = NULL; in btm_acl_created() local 213 p_dev_rec = btm_find_dev_by_handle (hci_handle); in btm_acl_created() 216 if (p_dev_rec ) in btm_acl_created() 218 BTM_TRACE_DEBUG1 ("device_type=0x%x", p_dev_rec->device_type); in btm_acl_created() 222 if (p_dev_rec && !is_le_link) in btm_acl_created() 225 if ((p_dev_rec->num_read_pages) && in btm_acl_created() 226 … (p_dev_rec->num_read_pages <= (HCI_EXT_FEATURES_PAGE_MAX + 1)) /* sanity check */) in btm_acl_created() 228 memcpy (p->peer_lmp_features, p_dev_rec->features, in btm_acl_created() 229 (HCI_FEATURE_BYTES_PER_PAGE * p_dev_rec->num_read_pages)); in btm_acl_created() [all …]
|
D | btm_ble_bgconn.c | 73 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); in btm_update_dev_to_white_list() local 89 if (p_dev_rec != NULL && in btm_update_dev_to_white_list() 90 p_dev_rec->device_type == BT_DEVICE_TYPE_BLE) in btm_update_dev_to_white_list() 97 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); in btm_update_dev_to_white_list() 99 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && in btm_update_dev_to_white_list() 100 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) in btm_update_dev_to_white_list() 102 …started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.static_addr_type, p_dev_rec->ble.static_ad… in btm_update_dev_to_white_list() 109 … started = btsnd_hcic_ble_remove_from_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); in btm_update_dev_to_white_list() 111 if (memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) in btm_update_dev_to_white_list() 113 …started = btsnd_hcic_ble_remove_from_white_list (p_dev_rec->ble.static_addr_type, p_dev_rec->ble.s… in btm_update_dev_to_white_list()
|
D | btm_int.h | 955 tBTM_SEC_DEV_REC *p_dev_rec, 1072 extern void btm_sec_free_dev (tBTM_SEC_DEV_REC *p_dev_rec); 1112 extern void btm_sec_dev_rec_cback_event (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res); 1115 extern void btm_sec_clear_ble_keys (tBTM_SEC_DEV_REC *p_dev_rec);
|
/external/bluetooth/bluedroid/stack/l2cap/ |
D | l2c_ble.c | 184 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (rem_bda); in L2CA_EnableUpdateBleConnParams() local 187 …(UINT16)((p_dev_rec->conn_params.min_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_param… in L2CA_EnableUpdateBleConnParams() 188 …(UINT16)((p_dev_rec->conn_params.max_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_param… in L2CA_EnableUpdateBleConnParams() 189 …(UINT16)((p_dev_rec->conn_params.slave_latency != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_para… in L2CA_EnableUpdateBleConnParams() 190 …(UINT16) ((p_dev_rec->conn_params.supervision_tout != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_… in L2CA_EnableUpdateBleConnParams() 255 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda); in l2cble_scanner_conn_comp() local 301 if ( (p_dev_rec->conn_params.min_conn_int >= BTM_BLE_CONN_INT_MIN ) && in l2cble_scanner_conn_comp() 302 (p_dev_rec->conn_params.min_conn_int <= BTM_BLE_CONN_INT_MAX ) && in l2cble_scanner_conn_comp() 303 (p_dev_rec->conn_params.max_conn_int >= BTM_BLE_CONN_INT_MIN ) && in l2cble_scanner_conn_comp() 304 (p_dev_rec->conn_params.max_conn_int <= BTM_BLE_CONN_INT_MAX ) && in l2cble_scanner_conn_comp() [all …]
|
D | l2c_utils.c | 2200 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_lcb->remote_bd_addr); in l2cu_create_conn_after_switch() local 2242 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()
|