Lines Matching refs:sec_level

727 				u8 dst_type, u8 sec_level, u16 conn_timeout,  in hci_connect_le()  argument
755 conn->pending_sec_level = sec_level; in hci_connect_le()
790 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
791 conn->pending_sec_level = sec_level; in hci_connect_le()
863 u8 sec_level, u8 auth_type) in hci_connect_acl() argument
884 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl()
885 acl->pending_sec_level = sec_level; in hci_connect_acl()
960 static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type) in hci_conn_auth() argument
964 if (conn->pending_sec_level > sec_level) in hci_conn_auth()
965 sec_level = conn->pending_sec_level; in hci_conn_auth()
967 if (sec_level > conn->sec_level) in hci_conn_auth()
968 conn->pending_sec_level = sec_level; in hci_conn_auth()
1011 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, in hci_conn_security() argument
1017 return smp_conn_security(conn, sec_level); in hci_conn_security()
1020 if (sec_level == BT_SECURITY_SDP) in hci_conn_security()
1025 if (sec_level == BT_SECURITY_LOW && !hci_conn_ssp_enabled(conn)) in hci_conn_security()
1035 sec_level == BT_SECURITY_FIPS) in hci_conn_security()
1042 sec_level == BT_SECURITY_HIGH) in hci_conn_security()
1049 (sec_level == BT_SECURITY_MEDIUM || sec_level == BT_SECURITY_LOW)) in hci_conn_security()
1057 (sec_level == BT_SECURITY_MEDIUM || sec_level == BT_SECURITY_LOW || in hci_conn_security()
1068 if (!hci_conn_auth(conn, sec_level, auth_type)) in hci_conn_security()
1081 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level) in hci_conn_check_secure() argument
1086 if (sec_level != BT_SECURITY_HIGH && sec_level != BT_SECURITY_FIPS) in hci_conn_check_secure()
1090 if (conn->sec_level == BT_SECURITY_HIGH || in hci_conn_check_secure()
1091 conn->sec_level == BT_SECURITY_FIPS) in hci_conn_check_secure()