Lines Matching refs:sm4
936 else if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) in BTM_PINCodeReply()
1080 …BTM_TRACE_EVENT ("BTM_SecBond: Remote sm4: 0x%x HCI Handle: 0x%04x", p_dev_rec->sm4, p_dev_rec->h… in btm_sec_bond_by_transport()
1099 BTM_TRACE_DEBUG ("sec mode: %d sm4:x%x", btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_bond_by_transport()
1101 || (p_dev_rec->sm4 == BTM_SM4_KNOWN)) in btm_sec_bond_by_transport()
1109 BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) in btm_sec_bond_by_transport()
1112 if ((p_dev_rec->sm4 & BTM_SM4_CONN_PEND) == 0) in btm_sec_bond_by_transport()
1126 btm_pair_state_descr (btm_cb.pairing_state), p_dev_rec->sm4, p_dev_rec->sec_state); in btm_sec_bond_by_transport()
2074 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_check_upgrade()
2246 … psm, btm_pair_state_descr(btm_cb.pairing_state), btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_l2cap_access_req()
2253 (BTM_SM4_KNOWN == p_dev_rec->sm4) || (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_l2cap_access_req()
2312 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) in btm_sec_l2cap_access_req()
2327 else if (!(BTM_SM4_KNOWN & p_dev_rec->sm4)) in btm_sec_l2cap_access_req()
2333 p_dev_rec->sm4 |= BTM_SM4_REQ_PEND; in btm_sec_l2cap_access_req()
2339 p_dev_rec->sm4, p_dev_rec->sec_flags, security_required, chk_acp_auth_done); in btm_sec_l2cap_access_req()
2363 BTM_TRACE_DEBUG ("no next_serv sm4:0x%x, chk:%d", p_dev_rec->sm4, chk_acp_auth_done); in btm_sec_l2cap_access_req()
2364 if (!BTM_SEC_IS_SM4(p_dev_rec->sm4)) in btm_sec_l2cap_access_req()
2385 !BTM_SEC_IS_SM4(p_dev_rec->sm4)) && (psm >= 0x1001)) in btm_sec_l2cap_access_req()
2433 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) in btm_sec_l2cap_access_req()
2441 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_l2cap_access_req()
2541 (BTM_SM4_KNOWN == p_dev_rec->sm4) || (BTM_SEC_IS_SM4(p_dev_rec->sm4) && in btm_sec_mx_access_request()
2647 if (BTM_SEC_IS_SM4(p_dev_rec->sm4)) in btm_sec_mx_access_request()
2655 p_dev_rec->sm4 |= BTM_SM4_UPGRADE; in btm_sec_mx_access_request()
2770 p_dev_rec->sm4 |= BTM_SM4_CONN_PEND; in btm_sec_conn_req()
3176 …M_TRACE_EVENT ("%s() continue bonding sm4: 0x%04x, status:0x%x", __func__, p_dev_rec->sm4, status); in btm_sec_rmt_name_request_complete()
3194 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) in btm_sec_rmt_name_request_complete()
3201 p_dev_rec->sm4 |= BTM_SM4_KNOWN; in btm_sec_rmt_name_request_complete()
3205 p_dev_rec->sm4, BTM_SEC_IS_SM4_LEGACY(p_dev_rec->sm4), in btm_sec_rmt_name_request_complete()
3206 BTM_SEC_IS_SM4(p_dev_rec->sm4),BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)); in btm_sec_rmt_name_request_complete()
3211 if ((p_dev_rec->sm4 != BTM_SM4_KNOWN) || !btm_sec_check_prefetch_pin(p_dev_rec)) in btm_sec_rmt_name_request_complete()
3282 if (p_dev_rec->sm4 & BTM_SM4_REQ_PEND) in btm_sec_rmt_name_request_complete()
3318 …BTM_TRACE_EVENT ("btm_sec_rmt_host_support_feat_evt sm4: 0x%x p[0]: 0x%x", p_dev_rec->sm4, p[0]); in btm_sec_rmt_host_support_feat_evt()
3320 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) in btm_sec_rmt_host_support_feat_evt()
3322 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_rmt_host_support_feat_evt()
3326 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_rmt_host_support_feat_evt()
3328 …ENT ("btm_sec_rmt_host_support_feat_evt sm4: 0x%x features[0]: 0x%x", p_dev_rec->sm4, features[0]); in btm_sec_rmt_host_support_feat_evt()
3376 p_dev_rec->sm4 |= BTM_SM4_TRUE; in btm_io_capabilities_req()
3496 if (p_dev_rec->sm4 & BTM_SM4_UPGRADE) in btm_io_capabilities_req()
3498 p_dev_rec->sm4 &= ~BTM_SM4_UPGRADE; in btm_io_capabilities_req()
4033 old_sm4 = p_dev_rec->sm4; in btm_sec_auth_complete()
4034 p_dev_rec->sm4 &= ~BTM_SM4_RETRY; in btm_sec_auth_complete()
4126 p_dev_rec->sm4 |= BTM_SM4_RETRY; in btm_sec_auth_complete()
4127 … BTM_TRACE_DEBUG ("Collision retry sm4:x%x sec_flags:0x%x", p_dev_rec->sm4, p_dev_rec->sec_flags); in btm_sec_auth_complete()
4131 else if (HCI_ERR_KEY_MISSING == status && BTM_SEC_IS_SM4(p_dev_rec->sm4)) in btm_sec_auth_complete()
4134 p_dev_rec->sm4 |= BTM_SM4_RETRY; in btm_sec_auth_complete()
4136 …BTM_TRACE_DEBUG ("Retry for missing key sm4:x%x sec_flags:0x%x", p_dev_rec->sm4, p_dev_rec->sec_fl… in btm_sec_auth_complete()
4143 if (p_dev_rec->sm4 & BTM_SM4_RETRY) in btm_sec_auth_complete()
4439 if (p_dev_rec->sm4 & BTM_SM4_CONN_PEND) in btm_sec_connected()
4452 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
4478 p_dev_rec->sm4 &= ~BTM_SM4_CONN_PEND; in btm_sec_connected()
4500 btm_cb.pairing_flags, p_dev_rec->sm4); in btm_sec_connected()
4503 if (BTM_SEC_IS_SM4_UNKNOWN(p_dev_rec->sm4)) in btm_sec_connected()
4759 p_dev_rec->sm4 &= BTM_SM4_TRUE; in btm_sec_disconnected()
5176 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_pin_code_request()
6110 p_dev_rec->sm4 = BTM_SM4_TRUE; in btm_sec_set_peer_sec_caps()
6116 p_dev_rec->sm4 = BTM_SM4_KNOWN; in btm_sec_set_peer_sec_caps()
6121 p_dev_rec->sm4, p_dev_rec->remote_supports_secure_connections); in btm_sec_set_peer_sec_caps()