mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-24 15:22:34 +01:00
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:
parent
335ee0c31e
commit
76246d0145
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user