| /Linux-v5.4/net/bluetooth/ |
| D | hci_conn.c | 954 u8 dst_type, u8 sec_level, u16 conn_timeout, in hci_connect_le() argument 1009 conn->pending_sec_level = sec_level; in hci_connect_le() 1013 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le() 1136 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument 1160 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan() 1161 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1177 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan() 1178 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1189 u8 sec_level, u8 auth_type) in hci_connect_acl() argument 1210 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl() [all …]
|
| D | smp.c | 644 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument 646 switch (sec_level) { in seclevel_to_authreq() 1102 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys() 1292 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys() 1338 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys() 1733 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local 1812 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req() 1814 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req() 1816 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req() 1817 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req() [all …]
|
| D | smp.h | 186 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 188 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
|
| D | l2cap_sock.c | 144 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() 437 switch (chan->sec_level) { in l2cap_sock_getsockopt_old() 528 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 533 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 717 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old() 719 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old() 721 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old() 787 chan->sec_level = sec.level; in l2cap_sock_setsockopt() [all …]
|
| D | l2cap_core.c | 427 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout() 511 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults() 775 switch (chan->sec_level) { in l2cap_get_auth_type() 787 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 788 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 790 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() 791 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type() 798 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 799 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 801 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() [all …]
|
| D | hci_event.c | 2784 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt() 2949 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt() 4331 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt() 5013 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
|
| D | mgmt.c | 2847 u8 sec_level, auth_type; in pair_device() local 2883 sec_level = BT_SECURITY_MEDIUM; in pair_device() 2887 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device() 2908 addr_type, sec_level, in pair_device() 2960 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
|
| /Linux-v5.4/net/bluetooth/rfcomm/ |
| D | sock.c | 253 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init() 260 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init() 264 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init() 413 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect() 673 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old() 675 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old() 677 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old() 729 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 777 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old() 860 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
|
| D | core.c | 69 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() 729 u8 sec_level, in rfcomm_session_create() argument 756 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create() 2120 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm() 2124 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm() 2125 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm() [all …]
|
| /Linux-v5.4/include/net/bluetooth/ |
| D | rfcomm.h | 187 u8 sec_level; member 310 u8 sec_level; member
|
| D | hci_core.h | 478 __u8 sec_level; member 923 u8 dst_type, u8 sec_level, 926 u8 dst_type, u8 sec_level, u16 conn_timeout, 929 u8 sec_level, u8 auth_type); 933 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 934 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 1316 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm() 1317 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm() 1319 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm() 1320 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
|
| D | l2cap.h | 522 __u8 sec_level; member
|
| /Linux-v5.4/drivers/net/wireless/intel/ipw2x00/ |
| D | ipw2100.c | 5475 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local 5499 sec_level = SEC_LEVEL_0; in ipw2100_configure_security() 5501 sec_level = priv->ieee->sec.level; in ipw2100_configure_security() 5508 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()
|