aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2013-04-23 14:57:55 (GMT)
committerJouni Malinen <j@w1.fi>2013-04-23 14:57:55 (GMT)
commit754632c965a4c2a65d9d289745245a572351081d (patch)
tree77756cd19779ff97e3a372029cf2b3253e37db3c /src/eapol_supp
parentc2aff6b1d1522ea4b0a6ad18acfbe7bce88eab05 (diff)
downloadhostap-754632c965a4c2a65d9d289745245a572351081d.zip
hostap-754632c965a4c2a65d9d289745245a572351081d.tar.gz
hostap-754632c965a4c2a65d9d289745245a572351081d.tar.bz2
dbus_new: Add EAP logon/logoff
Add "EAPLogoff" and "EAPLogon" interface DBus commands which parallel the "logoff" and "logon" wpa_ctrl commands which terminate and restart EAP authentication. Slightly enhance the "logon" case by expiring any running "startWhile" timer. Signed-hostap: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'src/eapol_supp')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index 2e56086..9b054fc 100644
--- a/src/eapol_supp/eapol_supp_sm.c
+++ b/src/eapol_supp/eapol_supp_sm.c
@@ -1533,6 +1533,10 @@ void eapol_sm_notify_logoff(struct eapol_sm *sm, Boolean logoff)
{
if (sm) {
sm->userLogoff = logoff;
+ if (!logoff) {
+ /* If there is a delayed txStart queued, start now. */
+ sm->startWhen = 0;
+ }
eapol_sm_step(sm);
}
}