mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 14:22:37 +01:00
eapol: Generate new snonce on new 4-Way Handshake
Make sure that we handle PTK rekeying.
This commit is contained in:
parent
1d0afbc44c
commit
0ea28ba5ad
@ -664,15 +664,13 @@ static void eapol_handle_ptk_1_of_4(uint32_t ifindex, struct eapol_sm *sm,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sm->have_snonce) {
|
|
||||||
if (!get_nonce(sm->snonce)) {
|
if (!get_nonce(sm->snonce)) {
|
||||||
handshake_failed(ifindex, sm,
|
handshake_failed(ifindex, sm, MPDU_REASON_CODE_UNSPECIFIED);
|
||||||
MPDU_REASON_CODE_UNSPECIFIED);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sm->have_snonce = true;
|
sm->have_snonce = true;
|
||||||
}
|
sm->ptk_complete = false;
|
||||||
|
|
||||||
memcpy(sm->anonce, ek->key_nonce, sizeof(ek->key_nonce));
|
memcpy(sm->anonce, ek->key_nonce, sizeof(ek->key_nonce));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user