Lines Matching refs:sec_level
364 struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8 sec_level, __u8 auth_type)
379 acl->sec_level = sec_level;
383 if (acl->sec_level < sec_level)
384 acl->sec_level = sec_level;
436 static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
440 if (sec_level > conn->sec_level)
441 conn->sec_level = sec_level;
458 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
462 if (sec_level == BT_SECURITY_SDP)
465 if (sec_level == BT_SECURITY_LOW &&
470 return hci_conn_auth(conn, sec_level, auth_type);
475 if (hci_conn_auth(conn, sec_level, auth_type)) {