/linux-4.4.14/net/bluetooth/ |
D | hci_conn.c | 784 u8 dst_type, u8 sec_level, u16 conn_timeout, in hci_connect_le() argument 818 if (conn->pending_sec_level < sec_level) in hci_connect_le() 819 conn->pending_sec_level = sec_level; in hci_connect_le() 856 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le() 860 conn->pending_sec_level = sec_level; in hci_connect_le() 1012 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument 1038 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan() 1039 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1064 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan() 1065 conn->pending_sec_level = sec_level; in hci_connect_le_scan() [all …]
|
D | smp.h | 184 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 186 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
|
D | l2cap_sock.c | 139 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 144 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 147 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 436 switch (chan->sec_level) { in l2cap_sock_getsockopt_old() 527 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 532 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 716 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old() 718 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old() 720 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old() 786 chan->sec_level = sec.level; in l2cap_sock_setsockopt() [all …]
|
D | smp.c | 647 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument 649 switch (sec_level) { in seclevel_to_authreq() 1107 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys() 1278 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys() 1324 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys() 1714 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local 1786 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req() 1788 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req() 1790 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req() 1791 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req() [all …]
|
D | l2cap_core.c | 411 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout() 495 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults() 757 switch (chan->sec_level) { in l2cap_get_auth_type() 769 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 770 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 772 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() 773 chan->sec_level == BT_SECURITY_FIPS) 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() [all …]
|
D | hci_event.c | 2429 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt() 2592 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt() 3876 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt() 4554 conn->sec_level = BT_SECURITY_LOW; in hci_le_conn_complete_evt()
|
D | mgmt.c | 3502 u8 sec_level, auth_type; in pair_device() local 3538 sec_level = BT_SECURITY_MEDIUM; in pair_device() 3542 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device() 3563 addr_type, sec_level, in pair_device() 3616 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
|
/linux-4.4.14/net/bluetooth/rfcomm/ |
D | sock.c | 251 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init() 258 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init() 262 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init() 410 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect() 670 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old() 672 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old() 674 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old() 726 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 774 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old() 857 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() 732 u8 sec_level, in rfcomm_session_create() argument 759 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create() 2137 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm() 2141 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm() 2142 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm() [all …]
|
/linux-4.4.14/include/net/bluetooth/ |
D | hci_core.h | 434 __u8 sec_level; member 877 u8 dst_type, u8 sec_level, 880 u8 dst_type, u8 sec_level, u16 conn_timeout, 883 u8 sec_level, u8 auth_type); 887 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 888 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 1240 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm() 1241 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm() 1243 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm() 1244 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
|
D | rfcomm.h | 185 u8 sec_level; member 308 u8 sec_level; member
|
D | l2cap.h | 512 __u8 sec_level; member
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
D | ipw2100.c | 5486 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local 5510 sec_level = SEC_LEVEL_0; in ipw2100_configure_security() 5512 sec_level = priv->ieee->sec.level; in ipw2100_configure_security() 5519 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()
|