Lines Matching refs:auth
859 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument
872 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
880 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1013 u8 stk[16], auth; in smp_random() local
1023 auth = 1; in smp_random()
1025 auth = 0; in smp_random()
1032 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1132 u8 key_type, auth; in sc_add_ltk() local
1140 auth = 1; in sc_add_ltk()
1142 auth = 0; in sc_add_ltk()
1145 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1714 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1734 auth = req->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_req()
1737 (auth & SMP_AUTH_BONDING)) in smp_cmd_pairing_req()
1740 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_req()
1780 build_pairing_cmd(conn, req, &rsp, auth); in smp_cmd_pairing_req()
1788 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1832 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability); in smp_cmd_pairing_req()
1899 u8 key_size, auth; in smp_cmd_pairing_rsp() local
1918 auth = rsp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_rsp()
1920 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1946 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1975 auth |= req->auth_req; in smp_cmd_pairing_rsp()
1977 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability); in smp_cmd_pairing_rsp()
2018 u8 auth; in fixup_sc_false_positive() local
2037 auth = req->auth_req & AUTH_REQ_MASK(hdev); in fixup_sc_false_positive()
2039 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) { in fixup_sc_false_positive()
2233 u8 sec_level, auth; in smp_cmd_security_req() local
2243 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req()
2245 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_security_req()
2251 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2267 (auth & SMP_AUTH_BONDING)) in smp_cmd_security_req()
2273 build_pairing_cmd(conn, &cp, NULL, auth); in smp_cmd_security_req()