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.c262 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init()
269 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init()
273 pi->dlc->sec_level = pi->sec_level;
417 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect()
660 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old()
662 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old()
664 rfcomm_pi(sk)->sec_level in rfcomm_sock_setsockopt_old()
[all...]
H A Dcore.c66 u8 sec_level, int *err);
215 switch (d->sec_level) { in rfcomm_check_security()
228 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
291 d->sec_level = BT_SECURITY_LOW; in rfcomm_dlc_clear_state()
448 sock = rfcomm_session_connect(src, dst, d->sec_level, &err); in __rfcomm_dlc_close()
828 u8 sec_level, int *err)
854 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_send_sabm()
2297 if (d->sec_level == BT_SECURITY_MEDIUM) {
2301 } else if (d->sec_level in rfcomm_init()
762 rfcomm_session_create(bdaddr_t * src,bdaddr_t * dst,u8 sec_level,int * err) rfcomm_session_create() argument
[all...]
/linux/net/bluetooth/
H A Dhci_conn.c1477 u8 dst_type, bool dst_resolved, u8 sec_level, in hci_connect_le()
1543 conn->pending_sec_level = sec_level; in hci_connect_le()
1546 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
1729 u8 dst_type, u8 sec_level, in hci_connect_le_scan()
1754 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan()
1755 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1773 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan()
1774 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1786 u8 sec_level, u8 auth_type, in hci_connect_acl()
1821 acl->sec_level in hci_connect_acl()
1469 hci_connect_le(struct hci_dev * hdev,bdaddr_t * dst,u8 dst_type,bool dst_resolved,u8 sec_level,u16 conn_timeout,u8 role,u8 phy,u8 sec_phy) hci_connect_le() argument
1721 hci_connect_le_scan(struct hci_dev * hdev,bdaddr_t * dst,u8 dst_type,u8 sec_level,u16 conn_timeout,enum conn_reasons conn_reason) hci_connect_le_scan() argument
1778 hci_connect_acl(struct hci_dev * hdev,bdaddr_t * dst,u8 sec_level,u8 auth_type,enum conn_reasons conn_reason,u16 timeout) hci_connect_acl() argument
2565 hci_conn_auth(struct hci_conn * conn,__u8 sec_level,__u8 auth_type) hci_conn_auth() argument
2614 hci_conn_security(struct hci_conn * conn,__u8 sec_level,__u8 auth_type,bool initiator) hci_conn_security() argument
2699 hci_conn_check_secure(struct hci_conn * conn,__u8 sec_level) hci_conn_check_secure() argument
[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()
1088 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1279 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1326 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1713 u8 key_size, auth, sec_level; in smp_cmd_pairing_req()
1790 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1792 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1794 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1795 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req()
1711 u8 key_size, auth, sec_level; smp_cmd_pairing_req() local
2197 smp_ltk_encrypt(struct l2cap_conn * conn,u8 sec_level) smp_ltk_encrypt() argument
2221 smp_sufficient_security(struct hci_conn * hcon,u8 sec_level,enum smp_key_pref key_pref) smp_sufficient_security() argument
2268 u8 sec_level, auth; smp_cmd_security_req() local
2346 smp_conn_security(struct hci_conn * hcon,__u8 sec_level) smp_conn_security() argument
[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()
516 switch (chan->sec_level) { in l2cap_sock_getsockopt_old()
622 sec.level = conn->hcon->sec_level; in l2cap_sock_getsockopt()
627 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
862 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old()
864 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old()
866 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old()
973 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()
5877 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
H A Dmgmt.c3688 u8 sec_level, auth_type; in pair_device() local
3724 sec_level = BT_SECURITY_MEDIUM; in pair_device()
3728 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device()
3754 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device()
3806 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
/linux/include/net/bluetooth/
H A Drfcomm.h183 u8 sec_level; member
310 u8 sec_level;
309 u8 sec_level; global() member
H A Dhci_core.h711 __u8 sec_level;
1606 u8 dst_type, u8 sec_level,
1610 u8 dst_type, bool dst_resolved, u8 sec_level,
1614 u8 sec_level, u8 auth_type,
1639 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
1640 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
2233 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm()
2234 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm()
2236 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm()
2237 conn->sec_level in hci_encrypt_cfm()
710 __u8 sec_level; global() member
[all...]
H A Dl2cap.h535 __u8 sec_level; member
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2100.c5454 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local
5478 sec_level = SEC_LEVEL_0; in ipw2100_configure_security()
5480 sec_level = priv->ieee->sec.level; in ipw2100_configure_security()
5487 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()