]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Handle Group Key msg 1/2 without MIC when using AEAD cipher (STA)
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 3 Sep 2015 15:26:25 +0000 (18:26 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Oct 2016 18:11:47 +0000 (21:11 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/wpa.c

index b7851b6558da6febc97370a22aad4a620c076f09..63ebd700b5d9545d33016836dfd9ce775e218bb9 100644 (file)
@@ -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");
                }
        }