Lines Matching refs:auth
850 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument
863 bt_dev_dbg(hcon->hdev, "auth:%u lcl:%u rem:%u", auth, local_io, in tk_request()
872 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1012 u8 stk[16], auth; in smp_random() local
1022 auth = 1; in smp_random()
1024 auth = 0; in smp_random()
1031 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1136 u8 key_type, auth; in sc_add_ltk() local
1144 auth = 1; in sc_add_ltk()
1146 auth = 0; in sc_add_ltk()
1149 key_type, auth, smp->tk, smp->enc_key_size, in sc_add_ltk()
1745 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1763 auth = req->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_req()
1766 (auth & SMP_AUTH_BONDING)) in smp_cmd_pairing_req()
1769 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_req()
1812 build_pairing_cmd(conn, req, &rsp, auth); in smp_cmd_pairing_req()
1824 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1868 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability); in smp_cmd_pairing_req()
1934 u8 key_size, auth; in smp_cmd_pairing_rsp() local
1953 auth = rsp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_pairing_rsp()
1955 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
1973 if ((req->auth_req & SMP_AUTH_CT2) && (auth & SMP_AUTH_CT2)) in smp_cmd_pairing_rsp()
1984 if ((req->auth_req & SMP_AUTH_SC) && (auth & SMP_AUTH_SC)) in smp_cmd_pairing_rsp()
2013 auth |= req->auth_req; in smp_cmd_pairing_rsp()
2015 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability); in smp_cmd_pairing_rsp()
2056 u8 auth; in fixup_sc_false_positive() local
2075 auth = req->auth_req & AUTH_REQ_MASK(hdev); in fixup_sc_false_positive()
2077 if (tk_request(conn, 0, auth, rsp->io_capability, req->io_capability)) { in fixup_sc_false_positive()
2275 static void smp_send_pairing_req(struct smp_chan *smp, __u8 auth) in smp_send_pairing_req() argument
2282 build_pairing_cmd(smp->conn, &cp, NULL, auth); in smp_send_pairing_req()
2299 u8 sec_level, auth; in smp_cmd_security_req() local
2309 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req()
2311 if (hci_dev_test_flag(hdev, HCI_SC_ONLY) && !(auth & SMP_AUTH_SC)) in smp_cmd_security_req()
2317 sec_level = authreq_to_seclevel(auth); in smp_cmd_security_req()
2339 (auth & SMP_AUTH_BONDING)) in smp_cmd_security_req()
2344 smp_send_pairing_req(smp, auth); in smp_cmd_security_req()
2349 static void smp_send_security_req(struct smp_chan *smp, __u8 auth) in smp_send_security_req() argument
2353 cp.auth_req = auth; in smp_send_security_req()