Lines Matching defs:method
121 u8 method;
869 * function. If either side has MITM look up the method from the
873 smp->method = JUST_CFM;
875 smp->method = get_auth_method(smp, local_io, remote_io);
878 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR,
880 smp->method = JUST_WORKS;
883 if (smp->method == JUST_CFM &&
885 smp->method = JUST_WORKS;
889 if (smp->method == JUST_WORKS) {
907 if (smp->method != JUST_CFM) {
916 if (smp->method == OVERLAP) {
918 smp->method = CFM_PASSKEY;
920 smp->method = REQ_PASSKEY;
924 if (smp->method == CFM_PASSKEY) {
933 if (smp->method == REQ_PASSKEY)
936 else if (smp->method == JUST_CFM)
1470 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
1473 if (smp->method == REQ_OOB)
1833 u8 method;
1835 method = get_auth_method(smp, conn->hcon->io_capability,
1837 if (method == JUST_WORKS || method == JUST_CFM)
1993 u8 method;
1995 method = get_auth_method(smp, req->io_capability,
1997 if (method == JUST_WORKS || method == JUST_CFM)
2036 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
2166 if (smp->method == REQ_OOB) {
2175 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
2194 if (smp->method != JUST_WORKS)
2218 if (smp->method == REQ_OOB) {
2233 if (smp->method == JUST_WORKS)
2695 u8 local_mitm, remote_mitm, local_io, remote_io, method;
2720 /* If either side wants MITM, look up the method from the table,
2724 method = get_auth_method(smp, local_io, remote_io);
2726 method = JUST_WORKS;
2729 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags))
2730 method = JUST_WORKS;
2732 return method;
2808 smp->method = sc_select_method(smp);
2810 bt_dev_dbg(hdev, "selected method 0x%02x", smp->method);
2813 if (smp->method == JUST_WORKS || smp->method == JUST_CFM)
2821 if (smp->method == DSP_PASSKEY) {
2836 if (smp->method == REQ_OOB) {
2849 if (smp->method == REQ_PASSKEY) {
2907 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY)
2909 else if (smp->method == REQ_OOB)