Home
last modified time | relevance | path

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

/linux-4.4.14/net/bluetooth/
Dhci_conn.c784 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 …]
Dsmp.h184 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level,
186 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
Dl2cap_sock.c139 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 …]
Dsmp.c647 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 …]
Dl2cap_core.c411 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 …]
Dhci_event.c2429 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()
Dmgmt.c3502 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/
Dsock.c251 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()
Dcore.c69 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/
Dhci_core.h434 __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()
Drfcomm.h185 u8 sec_level; member
308 u8 sec_level; member
Dl2cap.h512 __u8 sec_level; member
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dipw2100.c5486 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()