Lines Matching refs:authreq
623 static u8 authreq_to_seclevel(u8 authreq) in authreq_to_seclevel() argument
625 if (authreq & SMP_AUTH_MITM) { in authreq_to_seclevel()
626 if (authreq & SMP_AUTH_SC) in authreq_to_seclevel()
650 struct smp_cmd_pairing *rsp, __u8 authreq) in build_pairing_cmd() argument
661 authreq |= SMP_AUTH_BONDING; in build_pairing_cmd()
663 authreq &= ~SMP_AUTH_BONDING; in build_pairing_cmd()
673 (authreq & SMP_AUTH_SC)) { in build_pairing_cmd()
699 authreq &= ~SMP_AUTH_SC; in build_pairing_cmd()
708 req->auth_req = (authreq & AUTH_REQ_MASK(hdev)); in build_pairing_cmd()
719 rsp->auth_req = (authreq & AUTH_REQ_MASK(hdev)); in build_pairing_cmd()
2368 __u8 authreq; in smp_conn_security() local
2411 authreq = seclevel_to_authreq(sec_level); in smp_conn_security()
2414 authreq |= SMP_AUTH_SC; in smp_conn_security()
2416 authreq |= SMP_AUTH_CT2; in smp_conn_security()
2428 authreq |= SMP_AUTH_MITM; in smp_conn_security()
2434 build_pairing_cmd(conn, &cp, NULL, authreq); in smp_conn_security()
2442 cp.auth_req = authreq; in smp_conn_security()