mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
eapol: update eapol_key_handle to work with FILS rekeys
Since FILS does not use a MIC, the 1/4 handler would always get called for FILS PTK rekeys. We can use the fact that message 1/4 has no MIC as well as no encrypted data to determine which packet it is. Both no MIC and no encrypted data means its message 1/4. Anything else is 3/4.
This commit is contained in:
parent
a70ef82432
commit
2fd755c285
@ -1956,7 +1956,7 @@ static void eapol_key_handle(struct eapol_sm *sm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If no MIC, then assume packet 1, otherwise packet 3 */
|
/* If no MIC, then assume packet 1, otherwise packet 3 */
|
||||||
if (!ek->key_mic)
|
if (!ek->key_mic && !ek->encrypted_key_data)
|
||||||
eapol_handle_ptk_1_of_4(sm, ek);
|
eapol_handle_ptk_1_of_4(sm, ek);
|
||||||
else {
|
else {
|
||||||
if (!key_data_len)
|
if (!key_data_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user