/Linux-v4.19/net/bluetooth/ |
D | hci_conn.c | 951 u8 dst_type, u8 sec_level, u16 conn_timeout, in hci_connect_le() argument 1006 conn->pending_sec_level = sec_level; in hci_connect_le() 1010 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le() 1133 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument 1157 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan() 1158 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1174 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan() 1175 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1186 u8 sec_level, u8 auth_type) in hci_connect_acl() argument 1207 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl() [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 | smp.c | 653 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument 655 switch (sec_level) { in seclevel_to_authreq() 1115 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys() 1305 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys() 1351 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys() 1754 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local 1833 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req() 1835 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req() 1837 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req() 1838 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req() [all …]
|
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 | 422 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout() 506 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults() 768 switch (chan->sec_level) { in l2cap_get_auth_type() 780 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 781 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 783 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() 784 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type() 791 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 792 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 794 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() [all …]
|
D | hci_event.c | 2700 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt() 2865 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt() 4200 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt() 4882 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
|
D | mgmt.c | 2852 u8 sec_level, auth_type; in pair_device() local 2888 sec_level = BT_SECURITY_MEDIUM; in pair_device() 2892 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device() 2913 addr_type, sec_level, in pair_device() 2965 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
|
/Linux-v4.19/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() 728 u8 sec_level, in rfcomm_session_create() argument 755 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create() 2119 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm() 2123 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm() 2124 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm() [all …]
|
/Linux-v4.19/include/net/bluetooth/ |
D | hci_core.h | 460 __u8 sec_level; member 904 u8 dst_type, u8 sec_level, 907 u8 dst_type, u8 sec_level, u16 conn_timeout, 910 u8 sec_level, u8 auth_type); 914 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 915 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 1290 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm() 1291 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm() 1293 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm() 1294 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
|
D | rfcomm.h | 187 u8 sec_level; member 310 u8 sec_level; member
|
D | l2cap.h | 518 __u8 sec_level; member
|
/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2100.c | 5489 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local 5513 sec_level = SEC_LEVEL_0; in ipw2100_configure_security() 5515 sec_level = priv->ieee->sec.level; in ipw2100_configure_security() 5522 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()
|