]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix GTK rekey by accepting EAPOL-Key msg 1/2 with FILS AKM
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Mon, 10 Apr 2017 10:25:59 +0000 (15:55 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 10 Apr 2017 13:11:41 +0000 (16:11 +0300)
GTK rekeying was rejected if a prior 4-way handshake is not done.
Fix this by allowing GTK rekey to happen in case of a FILS connection
since it does not involve a 4-way handshake.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/wpa.c

index 6d91142942e7aa6d44dd3ac5e197de735441fab6..87a2fed40b146f8091f62186bf0dfe2a13d77ec9 100644 (file)
@@ -1585,7 +1585,7 @@ static void wpa_supplicant_process_1_of_2(struct wpa_sm *sm,
        struct wpa_gtk_data gd;
        const u8 *key_rsc;
 
-       if (!sm->msg_3_of_4_ok) {
+       if (!sm->msg_3_of_4_ok && !wpa_fils_is_completed(sm)) {
                wpa_msg(sm->ctx->msg_ctx, MSG_INFO,
                        "WPA: Group Key Handshake started prior to completion of 4-way handshake");
                goto failed;