Home
last modified time | relevance | path

Searched refs:sec_level (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/net/bluetooth/rfcomm/
Dsock.c250 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init()
257 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init()
261 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init()
404 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect()
643 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old()
645 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old()
647 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old()
700 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt()
748 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old()
831 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
Dcore.c70 u8 sec_level,
219 switch (d->sec_level) { in rfcomm_check_security()
232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
295 d->sec_level = BT_SECURITY_LOW; in rfcomm_dlc_clear_state()
388 s = rfcomm_session_create(src, dst, d->sec_level, &err); in __rfcomm_dlc_open()
765 u8 sec_level, in rfcomm_session_create() argument
793 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create()
2158 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm()
2162 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm()
2163 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm()
[all …]
/Linux-v6.6/net/bluetooth/
Dhci_conn.c1330 u8 dst_type, bool dst_resolved, u8 sec_level, in hci_connect_le() argument
1388 conn->pending_sec_level = sec_level; in hci_connect_le()
1392 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
1561 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument
1586 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan()
1587 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1605 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan()
1606 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1618 u8 sec_level, u8 auth_type, in hci_connect_acl() argument
1650 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl()
[all …]
Dsmp.c635 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument
637 switch (sec_level) { in seclevel_to_authreq()
1111 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1301 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1348 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1744 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1823 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1825 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1827 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1828 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req()
[all …]
Dsmp.h186 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level,
188 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
Dl2cap_sock.c146 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
151 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
154 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
495 switch (chan->sec_level) { in l2cap_sock_getsockopt_old()
587 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
592 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
814 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old()
816 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old()
818 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old()
925 chan->sec_level = sec.level; in l2cap_sock_setsockopt()
[all …]
Dl2cap_core.c447 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout()
546 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults()
870 switch (chan->sec_level) { in l2cap_get_auth_type()
882 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
883 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
885 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
886 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type()
893 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
894 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
896 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
[all …]
Dhci_event.c3493 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt()
3604 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt()
5228 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt()
5988 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
Dmgmt.c3464 u8 sec_level, auth_type; in pair_device() local
3500 sec_level = BT_SECURITY_MEDIUM; in pair_device()
3504 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device()
3525 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device()
3577 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
/Linux-v6.6/include/net/bluetooth/
Drfcomm.h186 u8 sec_level; member
309 u8 sec_level; member
Dhci_core.h713 __u8 sec_level; member
1440 u8 dst_type, u8 sec_level,
1444 u8 dst_type, bool dst_resolved, u8 sec_level,
1447 u8 sec_level, u8 auth_type,
1467 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
1468 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
2001 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm()
2002 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm()
2004 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm()
2005 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
Dl2cap.h565 __u8 sec_level; member
/Linux-v6.6/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c5462 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local
5486 sec_level = SEC_LEVEL_0; in ipw2100_configure_security()
5488 sec_level = priv->ieee->sec.level; in ipw2100_configure_security()
5495 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()