eapol: Don't send EAPOL-Start without EAP

Fix 1a64c4b771 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.
This commit is contained in:
Andrew Zaborowski 2017-02-24 03:27:38 +01:00 committed by Denis Kenzior
parent 335ee0c31e
commit 76246d0145
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}