3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 18:12:42 +01:00

eapol: Stop eapol timeout after step 3/4

Move the cancelling of the eapol timeout from the end of step 1 to
step 3 to guard the whole handshake.  At the end of step 1 stop the
EAPOL-Start timeout for the case of 802.1X authentication + a cached
PMKSA (not used yet.)
This commit is contained in:
Andrew Zaborowski 2018-02-13 19:37:57 +01:00 committed by Denis Kenzior
parent 0abab92cac
commit 7e8e8b2ac2

View File

@ -1063,8 +1063,8 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm,
eapol_write(sm, (struct eapol_frame *) step2);
l_free(step2);
l_timeout_remove(sm->timeout);
sm->timeout = NULL;
l_timeout_remove(sm->eapol_start_timeout);
sm->eapol_start_timeout = NULL;
return;
@ -1346,6 +1346,9 @@ retransmit:
rekey_offload(sm->handshake->ifindex, ptk->kek, ptk->kck,
sm->replay_counter, sm->user_data);
l_timeout_remove(sm->timeout);
sm->timeout = NULL;
return;
error_ie_different: