mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
eapol: Don't start timeout if handshake already done
Don't start the handshake timeout in eapol_start if either handshake->ptk_complete is set (handshake already done) or handshake->have_snonce is set (steps 1&2 done). This accounts for eapol_start being called after a Fast Transition when a 4-Way handshake is not expected.
This commit is contained in:
parent
95e6623011
commit
e4c5b4b517
@ -1631,8 +1631,8 @@ void eapol_register(struct eapol_sm *sm)
|
|||||||
|
|
||||||
void eapol_start(struct eapol_sm *sm)
|
void eapol_start(struct eapol_sm *sm)
|
||||||
{
|
{
|
||||||
|
if (!sm->handshake->ptk_complete && !sm->handshake->have_snonce)
|
||||||
sm->timeout = l_timeout_create(2, eapol_timeout, sm, NULL);
|
sm->timeout = l_timeout_create(2, eapol_timeout, sm, NULL);
|
||||||
|
|
||||||
sm->started = true;
|
sm->started = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user