Lines Matching refs:auth

841 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,  in tk_request()  argument
854 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
862 if (!(auth & SMP_AUTH_MITM)) in tk_request()
998 u8 stk[16], auth; in smp_random() local
1011 auth = 1; in smp_random()
1013 auth = 0; in smp_random()
1020 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1135 u8 key_type, auth; in sc_add_ltk() local
1143 auth = 1; in sc_add_ltk()
1145 auth = 0; in sc_add_ltk()
1151 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1713 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1733 auth = req->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_req()
1736 (auth & SMP_AUTH_BONDING)) in smp_cmd_pairing_req()
1739 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_req()
1779 build_pairing_cmd(conn, req, &rsp, auth); in smp_cmd_pairing_req()
1787 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1831 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability); in smp_cmd_pairing_req()
1898 u8 key_size, auth; in smp_cmd_pairing_rsp() local
1917 auth = rsp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_rsp()
1919 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1945 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1974 auth |= req->auth_req; in smp_cmd_pairing_rsp()
1976 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability); in smp_cmd_pairing_rsp()
2017 u8 auth; in fixup_sc_false_positive() local
2036 auth = req->auth_req & AUTH_REQ_MASK(hdev); in fixup_sc_false_positive()
2038 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) { in fixup_sc_false_positive()
2232 u8 sec_level, auth; in smp_cmd_security_req() local
2242 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req()
2244 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_security_req()
2250 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2266 (auth & SMP_AUTH_BONDING)) in smp_cmd_security_req()
2272 build_pairing_cmd(conn, &cp, NULL, auth); in smp_cmd_security_req()