Lines Matching refs:security_mode
502 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in BTM_SetSecurityLevel()
503 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in BTM_SetSecurityLevel()
504 btm_cb.security_mode == BTM_SEC_MODE_SC) { in BTM_SetSecurityLevel()
535 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in BTM_SetSecurityLevel()
536 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in BTM_SetSecurityLevel()
537 btm_cb.security_mode == BTM_SEC_MODE_SC) { in BTM_SetSecurityLevel()
924 BTM_TRACE_DEBUG("sec mode: %d sm4:x%x", btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_bond_by_transport()
929 if ((btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_bond_by_transport()
930 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_bond_by_transport()
931 btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_bond_by_transport()
1714 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_l2cap_access_req()
1751 btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_l2cap_access_req()
1755 if ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_l2cap_access_req()
1756 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_l2cap_access_req()
1757 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_l2cap_access_req()
1758 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_l2cap_access_req()
1831 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_l2cap_access_req()
1832 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_l2cap_access_req()
1833 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_l2cap_access_req()
1893 ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_l2cap_access_req()
1894 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_l2cap_access_req()
1895 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_l2cap_access_req()
1896 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_l2cap_access_req()
2046 if ((btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_mx_access_request()
2065 if ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_mx_access_request()
2066 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_mx_access_request()
2067 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_mx_access_request()
2068 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_mx_access_request()
2159 (btm_cb.security_mode == BTM_SEC_MODE_SC))) { in btm_sec_mx_access_request()
2182 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_mx_access_request()
2183 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_mx_access_request()
2184 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_mx_access_request()
2445 btm_cb.security_mode = sec_mode; in btm_sec_init()
2482 btm_cb.security_mode = BTM_SEC_MODE_SERVICE; in btm_sec_dev_reset()
2485 BTM_TRACE_DEBUG("btm_sec_dev_reset sec mode: %d", btm_cb.security_mode); in btm_sec_dev_reset()
2894 __func__, btm_cb.security_mode, p_dev_rec->num_read_pages); in btm_io_capabilities_req()
2896 if ((btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_io_capabilities_req()
2956 } else if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
2983 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
3024 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
4144 if (btm_cb.security_mode == BTM_SEC_MODE_LINK) in btm_sec_connected()
5195 (btm_cb.security_mode == BTM_SEC_MODE_LINK)); in btm_restore_mode()
5197 (uint8_t)(btm_cb.security_mode == BTM_SEC_MODE_LINK)); in btm_restore_mode()
5485 if ((btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_set_peer_sec_caps()
5486 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_set_peer_sec_caps()
5487 btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_set_peer_sec_caps()