• Home
  • Raw
  • Download

Lines Matching refs:auth

856 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,  in tk_request()  argument
869 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
877 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1008 u8 stk[16], auth; in smp_random() local
1018 auth = 1; in smp_random()
1020 auth = 0; in smp_random()
1027 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1127 u8 key_type, auth; in sc_add_ltk() local
1135 auth = 1; in sc_add_ltk()
1137 auth = 0; in sc_add_ltk()
1140 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1733 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1753 auth = req->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_req()
1756 (auth & SMP_AUTH_BONDING)) in smp_cmd_pairing_req()
1759 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_req()
1802 build_pairing_cmd(conn, req, &rsp, auth); in smp_cmd_pairing_req()
1814 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1858 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability); in smp_cmd_pairing_req()
1924 u8 key_size, auth; in smp_cmd_pairing_rsp() local
1943 auth = rsp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_rsp()
1945 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1963 if ((req->auth_req & SMP_AUTH_CT2) && (auth & SMP_AUTH_CT2)) in smp_cmd_pairing_rsp()
1974 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
2003 auth |= req->auth_req; in smp_cmd_pairing_rsp()
2005 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability); in smp_cmd_pairing_rsp()
2046 u8 auth; in fixup_sc_false_positive() local
2065 auth = req->auth_req & AUTH_REQ_MASK(hdev); in fixup_sc_false_positive()
2067 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) { in fixup_sc_false_positive()
2261 u8 sec_level, auth; in smp_cmd_security_req() local
2271 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req()
2273 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_security_req()
2279 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2301 (auth & SMP_AUTH_BONDING)) in smp_cmd_security_req()
2307 build_pairing_cmd(conn, &cp, NULL, auth); in smp_cmd_security_req()