Lines Matching defs:auth
827 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
840 bt_dev_dbg(hcon->hdev, "auth:%u lcl:%u rem:%u", auth, local_io,
849 if (!(auth & SMP_AUTH_MITM))
989 u8 stk[16], auth;
998 auth = test_bit(SMP_FLAG_MITM_AUTH, &smp->flags) ? 1 : 0;
1005 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand);
1110 u8 key_type, auth;
1118 auth = 1;
1120 auth = 0;
1123 key_type, auth, smp->tk, smp->enc_key_size,
1710 u8 key_size, auth, sec_level;
1728 auth = req->auth_req & AUTH_REQ_MASK(hdev);
1731 (auth & SMP_AUTH_BONDING))
1734 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC))
1777 build_pairing_cmd(conn, req, &rsp, auth);
1789 sec_level = authreq_to_seclevel(auth);
1804 auth |= SMP_AUTH_MITM;
1822 * SC case, however some implementations incorrectly copy RFU auth
1837 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability);
1903 u8 key_size, auth;
1922 auth = rsp->auth_req & AUTH_REQ_MASK(hdev);
1924 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC))
1942 if ((req->auth_req & SMP_AUTH_CT2) && (auth & SMP_AUTH_CT2))
1953 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC))
1982 auth |= req->auth_req;
1984 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability);
2025 u8 auth;
2044 auth = req->auth_req & AUTH_REQ_MASK(hdev);
2046 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) {
2243 static void smp_send_pairing_req(struct smp_chan *smp, __u8 auth)
2250 build_pairing_cmd(smp->conn, &cp, NULL, auth);
2267 u8 sec_level, auth;
2277 auth = rp->auth_req & AUTH_REQ_MASK(hdev);
2279 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC))
2285 sec_level = authreq_to_seclevel(auth);
2307 (auth & SMP_AUTH_BONDING))
2312 smp_send_pairing_req(smp, auth);
2317 static void smp_send_security_req(struct smp_chan *smp, __u8 auth)
2321 cp.auth_req = auth;