Home
last modified time | relevance | path

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

/linux/net/bluetooth/rfcomm/
H A Dsock.c261 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init()
268 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init()
272 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init()
416 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect()
659 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old()
661 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old()
663 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old()
713 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt()
761 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old()
847 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
H A Dcore.c67 u8 sec_level,
216 switch (d->sec_level) { in rfcomm_check_security()
229 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
292 d->sec_level = BT_SECURITY_LOW; in rfcomm_dlc_clear_state()
385 s = rfcomm_session_create(src, dst, d->sec_level, &err); in __rfcomm_dlc_open()
762 u8 sec_level, in rfcomm_session_create() argument
790 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create()
2230 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm()
2234 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm()
2235 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm()
[all …]
/linux/net/bluetooth/
H A Dhci_conn.c1455 u8 dst_type, bool dst_resolved, u8 sec_level, in hci_connect_le() argument
1513 conn->pending_sec_level = sec_level; in hci_connect_le()
1516 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
1699 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument
1724 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan()
1725 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1743 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan()
1744 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1756 u8 sec_level, u8 auth_type, in hci_connect_acl() argument
1791 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl()
[all …]
H A Dsmp.c613 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument
615 switch (sec_level) { in seclevel_to_authreq()
1086 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1277 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1324 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1711 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1788 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1790 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1792 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1793 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req()
[all …]
H A Dsmp.h185 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level,
187 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
H A Dl2cap_core.c428 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout()
537 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults()
553 chan->sec_level = pchan->sec_level; in l2cap_chan_set_defaults()
893 switch (chan->sec_level) { in l2cap_get_auth_type()
905 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
906 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
908 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
909 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type()
916 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
917 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
[all …]
H A Dl2cap_sock.c145 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
150 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
153 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
500 switch (chan->sec_level) { in l2cap_sock_getsockopt_old()
594 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
599 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
830 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old()
832 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old()
834 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old()
939 chan->sec_level = sec.level; in l2cap_sock_setsockopt()
H A Dhci_event.c3531 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt()
3638 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt()
5246 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt()
5876 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
H A Dmgmt.c3681 u8 sec_level, auth_type; in pair_device() local
3717 sec_level = BT_SECURITY_MEDIUM; in pair_device()
3721 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device()
3747 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device()
3799 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
/linux/include/net/bluetooth/
H A Drfcomm.h183 u8 sec_level; member
309 u8 sec_level; member
H A Dhci_core.h710 __u8 sec_level; member
1605 u8 dst_type, u8 sec_level,
1609 u8 dst_type, bool dst_resolved, u8 sec_level,
1613 u8 sec_level, u8 auth_type,
1638 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
1639 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
2232 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm()
2233 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm()
2235 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm()
2236 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
H A Dl2cap.h535 __u8 sec_level; member
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2100.c5452 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local
5476 sec_level = SEC_LEVEL_0; in ipw2100_configure_security()
5478 sec_level = priv->ieee->sec.level; in ipw2100_configure_security()
5485 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()