Lines Matching refs:auth

866 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,  in tk_request()  argument
879 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
887 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1021 u8 stk[16], auth; in smp_random() local
1031 auth = 1; in smp_random()
1033 auth = 0; in smp_random()
1040 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1140 u8 key_type, auth; in sc_add_ltk() local
1148 auth = 1; in sc_add_ltk()
1150 auth = 0; in sc_add_ltk()
1153 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1754 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1774 auth = req->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_req()
1777 (auth & SMP_AUTH_BONDING)) in smp_cmd_pairing_req()
1780 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_req()
1823 build_pairing_cmd(conn, req, &rsp, auth); in smp_cmd_pairing_req()
1835 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1879 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability); in smp_cmd_pairing_req()
1945 u8 key_size, auth; in smp_cmd_pairing_rsp() local
1964 auth = rsp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_rsp()
1966 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1984 if ((req->auth_req & SMP_AUTH_CT2) && (auth & SMP_AUTH_CT2)) in smp_cmd_pairing_rsp()
1995 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
2024 auth |= req->auth_req; in smp_cmd_pairing_rsp()
2026 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability); in smp_cmd_pairing_rsp()
2067 u8 auth; in fixup_sc_false_positive() local
2086 auth = req->auth_req & AUTH_REQ_MASK(hdev); in fixup_sc_false_positive()
2088 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) { in fixup_sc_false_positive()
2282 u8 sec_level, auth; in smp_cmd_security_req() local
2292 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req()
2294 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_security_req()
2300 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2322 (auth & SMP_AUTH_BONDING)) in smp_cmd_security_req()
2328 build_pairing_cmd(conn, &cp, NULL, auth); in smp_cmd_security_req()