Lines Matching refs:lastId
181 sm->lastId = -1; /* new session - make sure this does not match with in SM_STATE()
741 sm->lastId = sm->reqId; in SM_STATE()
878 static int eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) in eap_success_workaround() argument
890 if (sm->workaround && (reqId == ((lastId + 1) & 0xff) || in eap_success_workaround()
891 reqId == ((lastId + 2) & 0xff))) { in eap_success_workaround()
895 "same)", reqId, lastId); in eap_success_workaround()
899 "lastId=%d", reqId, lastId); in eap_success_workaround()
944 duplicate = (sm->reqId == sm->lastId) && sm->rxReq; in eap_peer_req_is_duplicate()
985 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
986 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()
988 else if (sm->workaround && sm->lastId == -1 && sm->rxSuccess && in eap_peer_sm_step_received()
991 else if (sm->workaround && sm->lastId == -1 && sm->rxFailure && in eap_peer_sm_step_received()
1005 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
1006 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()