From: Jouni Malinen Date: Thu, 3 Sep 2015 15:26:25 +0000 (+0300) Subject: FILS: Handle Group Key msg 1/2 without MIC when using AEAD cipher (STA) X-Git-Tag: hostap_2_7~2235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16eb4858066f802c2e3437750516e17f36ce38df;p=thirdparty%2Fhostap.git FILS: Handle Group Key msg 1/2 without MIC when using AEAD cipher (STA) Signed-off-by: Jouni Malinen --- diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index b7851b655..63ebd700b 100644 --- a/src/rsn_supp/wpa.c +++ b/src/rsn_supp/wpa.c @@ -2187,14 +2187,15 @@ int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, peerkey_rx_eapol_smk(sm, src_addr, key, key_data_len, key_info, ver); } else { - if (key_info & WPA_KEY_INFO_MIC) { + if ((mic_len && (key_info & WPA_KEY_INFO_MIC)) || + (!mic_len && (key_info & WPA_KEY_INFO_ENCR_KEY_DATA))) { /* 1/2 Group Key Handshake */ wpa_supplicant_process_1_of_2(sm, src_addr, key, key_data, key_data_len, ver); } else { wpa_msg(sm->ctx->msg_ctx, MSG_WARNING, - "WPA: EAPOL-Key (Group) without Mic bit - " + "WPA: EAPOL-Key (Group) without Mic/Encr bit - " "dropped"); } }