aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-26 20:19:32 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-26 20:35:08 (GMT)
commit09bcf3be9c32252b9b4aba1161b35384edfe9f82 (patch)
tree3016cc0dfb93b8b5fb852f85f05df48df5603013 /src/eapol_supp
parent00e5e3d5099eac9e75e23056dbbb9add73f63b0a (diff)
downloadhostap-09bcf3be9c32252b9b4aba1161b35384edfe9f82.zip
hostap-09bcf3be9c32252b9b4aba1161b35384edfe9f82.tar.gz
hostap-09bcf3be9c32252b9b4aba1161b35384edfe9f82.tar.bz2
Clear idleWhile timer when EAP peer state machine is not in use
This allows the EAPOL tick timer to be stopped more quickly when getting disconnected. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eapol_supp')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index 8503554..e3bfa38 100644
--- a/src/eapol_supp/eapol_supp_sm.c
+++ b/src/eapol_supp/eapol_supp_sm.c
@@ -1744,7 +1744,8 @@ static void eapol_sm_set_int(void *ctx, enum eapol_int_var variable,
switch (variable) {
case EAPOL_idleWhile:
sm->idleWhile = value;
- eapol_enable_timer_tick(sm);
+ if (sm->idleWhile > 0)
+ eapol_enable_timer_tick(sm);
break;
}
}