Lines Matching refs:method
120 u8 method; member
872 smp->method = JUST_CFM; in tk_request()
874 smp->method = get_auth_method(smp, local_io, remote_io); in tk_request()
877 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, in tk_request()
879 smp->method = JUST_WORKS; in tk_request()
882 if (smp->method == JUST_CFM && in tk_request()
884 smp->method = JUST_WORKS; in tk_request()
888 if (smp->method == JUST_WORKS) { in tk_request()
906 if (smp->method != JUST_CFM) { in tk_request()
915 if (smp->method == OVERLAP) { in tk_request()
917 smp->method = CFM_PASSKEY; in tk_request()
919 smp->method = REQ_PASSKEY; in tk_request()
923 if (smp->method == CFM_PASSKEY) { in tk_request()
932 if (smp->method == REQ_PASSKEY) in tk_request()
935 else if (smp->method == JUST_CFM) in tk_request()
1469 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_dhkey_check()
1472 if (smp->method == REQ_OOB) in sc_dhkey_check()
1832 u8 method; in smp_cmd_pairing_req() local
1834 method = get_auth_method(smp, conn->hcon->io_capability, in smp_cmd_pairing_req()
1836 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_req()
1992 u8 method; in smp_cmd_pairing_rsp() local
1994 method = get_auth_method(smp, req->io_capability, in smp_cmd_pairing_rsp()
1996 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_rsp()
2035 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_check_confirm()
2165 if (smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2174 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_pairing_random()
2193 if (smp->method != JUST_WORKS) in smp_cmd_pairing_random()
2217 if (smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2232 if (smp->method == JUST_WORKS) in smp_cmd_pairing_random()
2694 u8 local_mitm, remote_mitm, local_io, remote_io, method; in sc_select_method() local
2723 method = get_auth_method(smp, local_io, remote_io); in sc_select_method()
2725 method = JUST_WORKS; in sc_select_method()
2728 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) in sc_select_method()
2729 method = JUST_WORKS; in sc_select_method()
2731 return method; in sc_select_method()
2807 smp->method = sc_select_method(smp); in smp_cmd_public_key()
2809 bt_dev_dbg(hdev, "selected method 0x%02x", smp->method); in smp_cmd_public_key()
2812 if (smp->method == JUST_WORKS || smp->method == JUST_CFM) in smp_cmd_public_key()
2820 if (smp->method == DSP_PASSKEY) { in smp_cmd_public_key()
2835 if (smp->method == REQ_OOB) { in smp_cmd_public_key()
2848 if (smp->method == REQ_PASSKEY) { in smp_cmd_public_key()
2906 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_dhkey_check()
2908 else if (smp->method == REQ_OOB) in smp_cmd_dhkey_check()