| /linux-6.15/net/bluetooth/rfcomm/ |
| H A D | sock.c | 250 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init() 257 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init() 261 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init() 404 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect() 642 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old() 644 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old() 646 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old() 696 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 744 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old() 828 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
|
| H A D | core.c | 70 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() 765 u8 sec_level, in rfcomm_session_create() argument 793 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create() 2158 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm() 2162 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm() 2163 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm() [all …]
|
| /linux-6.15/net/bluetooth/ |
| H A D | hci_conn.c | 1366 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le() 1547 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument 1591 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan() 1592 conn->pending_sec_level = sec_level; in hci_connect_le_scan() 1604 u8 sec_level, u8 auth_type, in hci_connect_acl() argument 1638 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl() 2329 if (sec_level > conn->sec_level) in hci_conn_auth() 2380 if (sec_level == BT_SECURITY_SDP) in hci_conn_security() 2397 if (sec_level <= BT_SECURITY_FIPS) in hci_conn_security() 2404 if (sec_level <= BT_SECURITY_HIGH) in hci_conn_security() [all …]
|
| H A D | smp.c | 636 switch (sec_level) { in seclevel_to_authreq() 1745 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local 1822 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req() 1824 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req() 2272 if (sec_level == BT_SECURITY_LOW) in smp_sufficient_security() 2286 if (hcon->sec_level >= sec_level) in smp_sufficient_security() 2316 u8 sec_level, auth; in smp_cmd_security_req() local 2332 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_security_req() 2346 hcon->pending_sec_level = sec_level; in smp_cmd_security_req() 2386 sec_level); in smp_conn_security() [all …]
|
| H A 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);
|
| H A D | l2cap_sock.c | 146 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 151 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 154 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 497 switch (chan->sec_level) { in l2cap_sock_getsockopt_old() 589 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 594 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 814 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old() 816 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old() 818 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old() 923 chan->sec_level = sec.level; in l2cap_sock_setsockopt() [all …]
|
| H A D | l2cap_core.c | 863 switch (chan->sec_level) { in l2cap_get_auth_type() 898 switch (chan->sec_level) { in l2cap_get_auth_type() 4689 int err, sec_level; in l2cap_le_connect_rsp() local 4741 sec_level = hcon->sec_level + 1; in l2cap_le_connect_rsp() 4742 if (chan->sec_level < sec_level) in l2cap_le_connect_rsp() 4743 chan->sec_level = sec_level; in l2cap_le_connect_rsp() 5163 int err = 0, sec_level; in l2cap_ecred_conn_rsp() local 5229 sec_level = hcon->sec_level + 1; in l2cap_ecred_conn_rsp() 5230 if (chan->sec_level < sec_level) in l2cap_ecred_conn_rsp() 5231 chan->sec_level = sec_level; in l2cap_ecred_conn_rsp() [all …]
|
| H A D | hci_event.c | 3491 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt() 3598 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt() 5143 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt() 5752 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
|
| H A D | mgmt.c | 3501 u8 sec_level, auth_type; in pair_device() local 3537 sec_level = BT_SECURITY_MEDIUM; in pair_device() 3541 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device() 3567 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device() 3619 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
|
| /linux-6.15/include/net/bluetooth/ |
| H A D | rfcomm.h | 186 u8 sec_level; member 309 u8 sec_level; member
|
| H A D | hci_core.h | 691 __u8 sec_level; member 1542 u8 dst_type, u8 sec_level, 1546 u8 dst_type, bool dst_resolved, u8 sec_level, 1550 u8 sec_level, u8 auth_type, 1571 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 1572 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 2119 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm() 2120 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm() 2122 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm() 2123 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
|
| H A D | l2cap.h | 535 __u8 sec_level; member
|
| /linux-6.15/drivers/net/wireless/intel/ipw2x00/ |
| H A D | ipw2100.c | 5457 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local 5481 sec_level = SEC_LEVEL_0; in ipw2100_configure_security() 5483 sec_level = priv->ieee->sec.level; in ipw2100_configure_security() 5490 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()
|