mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
eapol: allow eapol_create_common to work with no MIC
FILS does not use a MIC in EAPoL frames and also requires encrypted data on all EAPoL frames. In the common builder the mic_len is now checked and the flags are set appropriately.
This commit is contained in:
parent
62e20ca285
commit
ca63ac2342
@ -643,11 +643,11 @@ static struct eapol_key *eapol_create_common(
|
||||
out_frame->key_type = key_type;
|
||||
out_frame->install = false;
|
||||
out_frame->key_ack = false;
|
||||
out_frame->key_mic = true;
|
||||
out_frame->key_mic = (mic_len) ? true : false;
|
||||
out_frame->secure = secure;
|
||||
out_frame->error = false;
|
||||
out_frame->request = false;
|
||||
out_frame->encrypted_key_data = false;
|
||||
out_frame->encrypted_key_data = (mic_len) ? false : true;
|
||||
out_frame->smk_message = false;
|
||||
out_frame->key_length = 0;
|
||||
out_frame->key_replay_counter = L_CPU_TO_BE64(key_replay_counter);
|
||||
|
Loading…
Reference in New Issue
Block a user