From 76246d0145517f2e908f07aaf65b7b7fe21c5f31 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Fri, 24 Feb 2017 03:27:38 +0100 Subject: [PATCH] eapol: Don't send EAPOL-Start without EAP Fix 1a64c4b771c9cb69bfd815ff35ee4d1f9115dd0f by setting use_eapol_start by default only when 8021x authentication is configured. Otherwise we'd be sending EAPOL-Start even for WPA2 Personal possibly after the 4-Way Handshake success. --- src/eapol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index cb55129b..722e04b1 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -754,7 +754,9 @@ struct eapol_sm *eapol_sm_new(struct handshake_state *hs) sm = l_new(struct eapol_sm, 1); sm->handshake = hs; - sm->use_eapol_start = true; + + if (hs->settings_8021x) + sm->use_eapol_start = true; return sm; }