Lines Matching refs:method

119 	u8		method;  member
881 smp->method = JUST_CFM; in tk_request()
883 smp->method = get_auth_method(smp, local_io, remote_io); in tk_request()
886 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, in tk_request()
888 smp->method = JUST_WORKS; in tk_request()
891 if (smp->method == JUST_CFM && in tk_request()
893 smp->method = JUST_WORKS; in tk_request()
896 if (smp->method == JUST_WORKS) { in tk_request()
908 if (smp->method != JUST_CFM) { in tk_request()
917 if (smp->method == OVERLAP) { in tk_request()
919 smp->method = CFM_PASSKEY; in tk_request()
921 smp->method = REQ_PASSKEY; in tk_request()
925 if (smp->method == CFM_PASSKEY) { in tk_request()
934 if (smp->method == REQ_PASSKEY) in tk_request()
937 else if (smp->method == JUST_CFM) in tk_request()
1441 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_dhkey_check()
1444 if (smp->method == REQ_OOB) in sc_dhkey_check()
1795 u8 method; in smp_cmd_pairing_req() local
1797 method = get_auth_method(smp, conn->hcon->io_capability, in smp_cmd_pairing_req()
1799 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_req()
1953 u8 method; in smp_cmd_pairing_rsp() local
1955 method = get_auth_method(smp, req->io_capability, in smp_cmd_pairing_rsp()
1957 if (method == JUST_WORKS || method == JUST_CFM) in smp_cmd_pairing_rsp()
1996 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in sc_check_confirm()
2123 if (smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2132 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_pairing_random()
2157 if (smp->method == JUST_WORKS || smp->method == REQ_OOB) { in smp_cmd_pairing_random()
2561 u8 local_mitm, remote_mitm, local_io, remote_io, method; in sc_select_method() local
2590 method = get_auth_method(smp, local_io, remote_io); in sc_select_method()
2592 method = JUST_WORKS; in sc_select_method()
2595 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) in sc_select_method()
2596 method = JUST_WORKS; in sc_select_method()
2598 return method; in sc_select_method()
2647 smp->method = sc_select_method(smp); in smp_cmd_public_key()
2649 BT_DBG("%s selected method 0x%02x", hdev->name, smp->method); in smp_cmd_public_key()
2652 if (smp->method == JUST_WORKS || smp->method == JUST_CFM) in smp_cmd_public_key()
2660 if (smp->method == DSP_PASSKEY) { in smp_cmd_public_key()
2675 if (smp->method == REQ_OOB) { in smp_cmd_public_key()
2688 if (smp->method == REQ_PASSKEY) { in smp_cmd_public_key()
2746 if (smp->method == REQ_PASSKEY || smp->method == DSP_PASSKEY) in smp_cmd_dhkey_check()
2748 else if (smp->method == REQ_OOB) in smp_cmd_dhkey_check()