Lines Matching refs:lastId
242 sm->lastId = -1; /* new session - make sure this does not match with in SM_STATE()
954 sm->lastId = sm->reqId; in SM_STATE()
1098 static int eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) in eap_success_workaround() argument
1110 if (sm->workaround && (reqId == ((lastId + 1) & 0xff) || in eap_success_workaround()
1111 reqId == ((lastId + 2) & 0xff))) { in eap_success_workaround()
1115 "same)", reqId, lastId); in eap_success_workaround()
1119 "lastId=%d", reqId, lastId); in eap_success_workaround()
1164 duplicate = (sm->reqId == sm->lastId) && sm->rxReq; in eap_peer_req_is_duplicate()
1205 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
1206 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()
1208 else if (sm->workaround && sm->lastId == -1 && sm->rxSuccess && in eap_peer_sm_step_received()
1211 else if (sm->workaround && sm->lastId == -1 && sm->rxFailure && in eap_peer_sm_step_received()
1225 (sm->reqId == sm->lastId || in eap_peer_sm_step_received()
1226 eap_success_workaround(sm, sm->reqId, sm->lastId))) in eap_peer_sm_step_received()