Lines Matching refs:lastId
181 sm->lastId = -1; /* new session - make sure this does not match with in SM_STATE()
725 sm->lastId = sm->reqId; in SM_STATE()
862 static int eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) in eap_success_workaround() argument
874 if (sm->workaround && (reqId == ((lastId + 1) & 0xff) || in eap_success_workaround()
875 reqId == ((lastId + 2) & 0xff))) { in eap_success_workaround()
879 "same)", reqId, lastId); in eap_success_workaround()
883 "lastId=%d", reqId, lastId); in eap_success_workaround()
928 duplicate = (sm->reqId == sm->lastId) && sm->rxReq; in eap_peer_req_is_duplicate()
969 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
970 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()
972 else if (sm->workaround && sm->lastId == -1 && sm->rxSuccess && in eap_peer_sm_step_received()
975 else if (sm->workaround && sm->lastId == -1 && sm->rxFailure && in eap_peer_sm_step_received()
989 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
990 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()