eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit ca63ac2342c5da6d92a98017763eec5ecf652896
parent 62e20ca285bb4f262f8d19a9fae00c671b2ecca4
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Wed, 17 Apr 2019 15:16:40 -0700

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.

Diffstat:
Msrc/eapol.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/eapol.c b/src/eapol.c @@ -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);