Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/bluetooth/
Dhci_conn.c997 u8 dst_type, u8 sec_level, u16 conn_timeout, in hci_connect_le() argument
1057 conn->pending_sec_level = sec_level; in hci_connect_le()
1061 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
1181 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument
1206 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan()
1207 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1225 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan()
1226 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1238 u8 sec_level, u8 auth_type, in hci_connect_acl() argument
1261 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl()
[all …]
Dsmp.c634 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument
636 switch (sec_level) { in seclevel_to_authreq()
1103 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1293 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1339 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1734 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1813 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1815 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1817 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1818 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.c144 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
149 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
152 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
512 switch (chan->sec_level) { in l2cap_sock_getsockopt_old()
604 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
609 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
831 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old()
833 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old()
835 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old()
942 chan->sec_level = sec.level; in l2cap_sock_setsockopt()
[all …]
Dl2cap_core.c431 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout()
517 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults()
846 switch (chan->sec_level) { in l2cap_get_auth_type()
858 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
859 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
861 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
862 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type()
869 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
870 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
872 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
[all …]
Dhci_event.c2917 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt()
3067 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt()
4486 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt()
5214 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
Dmgmt.c2908 u8 sec_level, auth_type; in pair_device() local
2944 sec_level = BT_SECURITY_MEDIUM; in pair_device()
2948 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device()
2969 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device()
3021 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
/kernel/linux/linux-5.10/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()
410 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect()
671 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old()
673 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old()
675 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old()
728 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt()
776 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old()
859 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
Dcore.c68 u8 sec_level,
215 switch (d->sec_level) { in rfcomm_check_security()
228 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
291 d->sec_level = BT_SECURITY_LOW; in rfcomm_dlc_clear_state()
384 s = rfcomm_session_create(src, dst, d->sec_level, &err); in __rfcomm_dlc_open()
725 u8 sec_level, in rfcomm_session_create() argument
753 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create()
2118 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm()
2122 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm()
2123 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm()
[all …]
/kernel/linux/linux-5.10/include/net/bluetooth/
Drfcomm.h186 u8 sec_level; member
309 u8 sec_level; member
Dhci_core.h603 __u8 sec_level; member
1055 u8 dst_type, u8 sec_level,
1059 u8 dst_type, u8 sec_level, u16 conn_timeout,
1062 u8 sec_level, u8 auth_type,
1067 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
1068 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
1494 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm()
1495 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm()
1497 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm()
1498 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
Dl2cap.h563 __u8 sec_level; member
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c5473 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local
5497 sec_level = SEC_LEVEL_0; in ipw2100_configure_security()
5499 sec_level = priv->ieee->sec.level; in ipw2100_configure_security()
5506 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()