Reset EAPOL client state back to EAP_START while sending EAP_START.
This is to avoid cases when radius server is started later.
The last eapol client state gets stuck in eap id response in bbsim.
This prevents subsequent eapol state transitions from last state when the radius
server is started later.
Change-Id: I7417190e3e43f3a30a2b0fb48d89a59756a05c84
diff --git a/core/eapol.go b/core/eapol.go
index f14256d..ff14509 100644
--- a/core/eapol.go
+++ b/core/eapol.go
@@ -143,6 +143,8 @@
}).Debug("EAP_SUCCESS received, stop retrying")
break
}
+ // Reset state to EAP start
+ c.updateState(EAP_START)
} else {
logger.WithFields(log.Fields{
"clients": clients,