Lines Matching refs:security_mode
439 btm_cb.security_mode = BTM_SEC_MODE_SC; in BTM_SetSecureConnectionsOnly()
575 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_set_security_level()
576 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_set_security_level()
577 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_set_security_level()
608 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_set_security_level()
609 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_set_security_level()
610 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_set_security_level()
997 BTM_TRACE_DEBUG("sec mode: %d sm4:x%x", btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_bond_by_transport()
1002 if ((btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_bond_by_transport()
1003 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_bond_by_transport()
1004 btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_bond_by_transport()
1977 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_l2cap_access_req()
2014 btm_cb.security_mode, p_dev_rec->sm4); in btm_sec_l2cap_access_req()
2018 if ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_l2cap_access_req()
2019 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_l2cap_access_req()
2020 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_l2cap_access_req()
2021 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_l2cap_access_req()
2094 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_l2cap_access_req()
2095 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_l2cap_access_req()
2096 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_l2cap_access_req()
2156 ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_l2cap_access_req()
2157 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_l2cap_access_req()
2158 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_l2cap_access_req()
2159 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_l2cap_access_req()
2304 if ((btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_mx_access_request()
2323 if ((btm_cb.security_mode == BTM_SEC_MODE_UNDEFINED || in btm_sec_mx_access_request()
2324 btm_cb.security_mode == BTM_SEC_MODE_NONE || in btm_sec_mx_access_request()
2325 btm_cb.security_mode == BTM_SEC_MODE_SERVICE || in btm_sec_mx_access_request()
2326 btm_cb.security_mode == BTM_SEC_MODE_LINK) || in btm_sec_mx_access_request()
2417 (btm_cb.security_mode == BTM_SEC_MODE_SC))) { in btm_sec_mx_access_request()
2440 if (btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_mx_access_request()
2441 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_mx_access_request()
2442 btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_sec_mx_access_request()
2703 btm_cb.security_mode = sec_mode; in btm_sec_init()
2740 btm_cb.security_mode = BTM_SEC_MODE_SERVICE; in btm_sec_dev_reset()
2743 BTM_TRACE_DEBUG("btm_sec_dev_reset sec mode: %d", btm_cb.security_mode); in btm_sec_dev_reset()
3159 __func__, btm_cb.security_mode, p_dev_rec->num_read_pages); in btm_io_capabilities_req()
3161 if ((btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_io_capabilities_req()
3221 } else if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
3248 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
3289 if (btm_cb.security_mode == BTM_SEC_MODE_SC) { in btm_io_capabilities_req()
4401 if (btm_cb.security_mode == BTM_SEC_MODE_LINK) in btm_sec_connected()
5459 (btm_cb.security_mode == BTM_SEC_MODE_LINK)); in btm_restore_mode()
5461 (uint8_t)(btm_cb.security_mode == BTM_SEC_MODE_LINK)); in btm_restore_mode()
5749 if ((btm_cb.security_mode == BTM_SEC_MODE_SP || in btm_sec_set_peer_sec_caps()
5750 btm_cb.security_mode == BTM_SEC_MODE_SP_DEBUG || in btm_sec_set_peer_sec_caps()
5751 btm_cb.security_mode == BTM_SEC_MODE_SC) && in btm_sec_set_peer_sec_caps()