Lines Matching refs:hci_handle
910 && (p_dev_rec->hci_handle == BTM_SEC_INVALID_HANDLE) in BTM_PINCodeReply()
1000 if ( ((p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE) && transport == BT_TRANSPORT_BR_EDR in btm_sec_bond_by_transport()
1080 …EVENT ("BTM_SecBond: Remote sm4: 0x%x HCI Handle: 0x%04x", p_dev_rec->sm4, p_dev_rec->hci_handle); in btm_sec_bond_by_transport()
1087 if (p && p->hci_handle != BTM_SEC_INVALID_HANDLE) in btm_sec_bond_by_transport()
1236 BTM_TRACE_DEBUG ("hci_handle:0x%x sec_state:%d", p_dev_rec->hci_handle, p_dev_rec->sec_state ); in BTM_SecBondCancel()
1250 if (p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE) in BTM_SecBondCancel()
1259 … return btm_sec_send_hci_disconnect(p_dev_rec, HCI_ERR_PEER_USER, p_dev_rec->hci_handle); in BTM_SecBondCancel()
1373 (transport == BT_TRANSPORT_BR_EDR && p_dev_rec->hci_handle == BTM_SEC_INVALID_HANDLE) in BTM_SetEncryption()
1422 p_dev_rec->hci_handle, p_dev_rec->sec_state, p_dev_rec->sec_flags, in BTM_SetEncryption()
1470 if (conn_handle == p_dev_rec->hci_handle) in btm_sec_send_hci_disconnect()
1489 p_dev_rec->sec_state = (conn_handle == p_dev_rec->hci_handle) ? in btm_sec_send_hci_disconnect()
1496 if (p_dev_rec->rs_disc_pending == BTM_SEC_RS_PENDING && p_dev_rec->hci_handle == conn_handle) in btm_sec_send_hci_disconnect()
1592 if (p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE) in BTM_PasskeyReqReply()
1593 … btm_sec_send_hci_disconnect (p_dev_rec, HCI_ERR_AUTH_FAILURE, p_dev_rec->hci_handle); in BTM_PasskeyReqReply()
2133 p_dev_rec->hci_handle = handle; in btm_sec_l2cap_access_req()
3243 if (p_dev_rec->hci_handle == BTM_SEC_INVALID_HANDLE) in btm_sec_rmt_name_request_complete()
3268 l2cu_start_post_bond_timer(p_dev_rec->hci_handle); in btm_sec_rmt_name_request_complete()
3733 btm_sec_disconnect (p_dev_rec->hci_handle, HCI_ERR_AUTH_FAILURE); in btm_proc_sp_req_evt()
3848 btm_sec_send_hci_disconnect (p_dev_rec, HCI_ERR_AUTH_FAILURE, p_dev_rec->hci_handle); in btm_simple_pair_complete()
4026 l2cu_start_post_bond_timer (p_dev_rec->hci_handle); in btm_sec_auth_complete()
4090 btm_sec_send_hci_disconnect (p_dev_rec, HCI_ERR_PEER_USER, p_dev_rec->hci_handle); in btm_sec_auth_complete()
4111 l2cu_start_post_bond_timer (p_dev_rec->hci_handle); in btm_sec_auth_complete()
4154 btm_sec_send_hci_disconnect (p_dev_rec, HCI_ERR_AUTH_FAILURE, p_dev_rec->hci_handle); in btm_sec_auth_complete()
4213 if (p_dev_rec->hci_handle == handle) { in btm_sec_encrypt_change()
4231 if (p_dev_rec->hci_handle == handle) in btm_sec_encrypt_change()
4266 if ((status == HCI_SUCCESS) && encr_enable && (p_dev_rec->hci_handle == handle)) in btm_sec_encrypt_change()
4637 p_dev_rec->hci_handle = handle; in btm_sec_connected()
4749 transport = (handle == p_dev_rec->hci_handle) ? BT_TRANSPORT_BR_EDR: BT_TRANSPORT_LE; in btm_sec_disconnected()
4806 p_dev_rec->hci_handle = BTM_SEC_INVALID_HANDLE; in btm_sec_disconnected()
5106 btm_sec_send_hci_disconnect (p_dev_rec, HCI_ERR_AUTH_FAILURE, p_dev_rec->hci_handle); in btm_sec_pairing_timeout()
5342 && (p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE)) in btm_sec_execute_procedure()
5360 && (p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE)) in btm_sec_execute_procedure()
5408 && (p_dev_rec->hci_handle != BTM_SEC_INVALID_HANDLE)) in btm_sec_execute_procedure()
5506 return(btsnd_hcic_auth_request (p_dev_rec->hci_handle)); in btm_sec_start_authentication()
5520 if (!btsnd_hcic_set_conn_encrypt (p_dev_rec->hci_handle, TRUE)) in btm_sec_start_encryption()
5543 || (p_dev_rec->hci_handle == BTM_SEC_INVALID_HANDLE)) in btm_sec_start_authorization()