]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix key info in GTK rekey EAPOL-Key msg 2/2
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:18:11 +0000 (16:18 +0300)
While responding to EAPOL-Key message 1/2 with EAPOL-Key message 2/2
when using FILS AKM suites the ENCRYPTED bit is not set in key info of
2/2 which causes AP to drop 2/2. Fix this by setting the ENCRYPTED bit
since FILS AKM based connection uses AEAD encryption/decryption.

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

index 87a2fed40b146f8091f62186bf0dfe2a13d77ec9..5c77776edfbb6914b9f096f5e6a79370c80415bd 100644 (file)
@@ -1557,6 +1557,8 @@ static int wpa_supplicant_send_2_of_2(struct wpa_sm *sm,
        key_info |= ver | WPA_KEY_INFO_SECURE;
        if (mic_len)
                key_info |= WPA_KEY_INFO_MIC;
+       else
+               key_info |= WPA_KEY_INFO_ENCR_KEY_DATA;
        WPA_PUT_BE16(reply->key_info, key_info);
        if (sm->proto == WPA_PROTO_RSN || sm->proto == WPA_PROTO_OSEN)
                WPA_PUT_BE16(reply->key_length, 0);