Lines Matching refs:sec_level
629 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument
631 switch (sec_level) { in seclevel_to_authreq()
1110 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1277 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1323 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1713 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1785 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1787 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1789 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1790 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req()
2178 static bool smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level) in smp_ltk_encrypt() argument
2187 if (smp_ltk_sec_level(key) < sec_level) in smp_ltk_encrypt()
2202 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, in smp_sufficient_security() argument
2205 if (sec_level == BT_SECURITY_LOW) in smp_sufficient_security()
2219 if (hcon->sec_level >= sec_level) in smp_sufficient_security()
2232 u8 sec_level, auth; in smp_cmd_security_req() local
2248 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_security_req()
2250 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2252 if (smp_sufficient_security(hcon, sec_level, SMP_USE_LTK)) in smp_cmd_security_req()
2255 if (sec_level > hcon->pending_sec_level) in smp_cmd_security_req()
2256 hcon->pending_sec_level = sec_level; in smp_cmd_security_req()
2283 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level) in smp_conn_security() argument
2291 BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level); in smp_conn_security()
2300 if (smp_sufficient_security(hcon, sec_level, SMP_USE_LTK)) in smp_conn_security()
2303 if (sec_level > hcon->pending_sec_level) in smp_conn_security()
2304 hcon->pending_sec_level = sec_level; in smp_conn_security()
2330 authreq = seclevel_to_authreq(sec_level); in smp_conn_security()
2411 authenticated = (hcon->sec_level == BT_SECURITY_HIGH); in smp_cmd_master_ident()
2517 if (conn->hcon->sec_level > BT_SECURITY_MEDIUM) in smp_cmd_sign_info()