Lines Matching refs:method
113 u8 method; member
863 smp->method = JUST_CFM; in tk_request()
865 smp->method = get_auth_method(smp, local_io, remote_io); in tk_request()
868 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, in tk_request()
870 smp->method = JUST_WORKS; in tk_request()
873 if (smp->method == JUST_CFM && in tk_request()
875 smp->method = JUST_WORKS; in tk_request()
878 if (smp->method == JUST_WORKS) { in tk_request()
890 if (smp->method != JUST_CFM) { in tk_request()
899 if (smp->method == OVERLAP) { in tk_request()
901 smp->method = CFM_PASSKEY; in tk_request()
903 smp->method = REQ_PASSKEY; in tk_request()
907 if (smp->method == CFM_PASSKEY) { in tk_request()
916 if (smp->method == REQ_PASSKEY) in tk_request()
919 else if (smp->method == JUST_CFM) in tk_request()
1440 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_dhkey_check()
1443 if (smp->method == REQ_OOB) in sc_dhkey_check()
1794 u8 method; in smp_cmd_pairing_req() local
1796 method = get_auth_method(smp, conn->hcon->io_capability, in smp_cmd_pairing_req()
1798 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_req()
1952 u8 method; in smp_cmd_pairing_rsp() local
1954 method = get_auth_method(smp, req->io_capability, in smp_cmd_pairing_rsp()
1956 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_rsp()
1995 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_check_confirm()
2122 if (smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2131 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_pairing_random()
2156 if (smp->method == JUST_WORKS || smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2534 u8 local_mitm, remote_mitm, local_io, remote_io, method; in sc_select_method() local
2563 method = get_auth_method(smp, local_io, remote_io); in sc_select_method()
2565 method = JUST_WORKS; in sc_select_method()
2568 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) in sc_select_method()
2569 method = JUST_WORKS; in sc_select_method()
2571 return method; in sc_select_method()
2620 smp->method = sc_select_method(smp); in smp_cmd_public_key()
2622 BT_DBG("%s selected method 0x%02x", hdev->name, smp->method); in smp_cmd_public_key()
2625 if (smp->method == JUST_WORKS || smp->method == JUST_CFM) in smp_cmd_public_key()
2633 if (smp->method == DSP_PASSKEY) { in smp_cmd_public_key()
2648 if (smp->method == REQ_OOB) { in smp_cmd_public_key()
2661 if (smp->method == REQ_PASSKEY) { in smp_cmd_public_key()
2719 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_dhkey_check()
2721 else if (smp->method == REQ_OOB) in smp_cmd_dhkey_check()