Browse Source

FILS: Do not add Key MIC field in supplicant when using AEAD cipher

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 9 years ago
parent
commit
f5ff8ae6a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rsn_supp/wpa.c

+ 1 - 1
src/rsn_supp/wpa.c

@@ -64,7 +64,7 @@ int wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck, size_t kck_len,
 				MAC2STR(dest));
 		}
 	}
-	if (key_mic &&
+	if (key_mic && mic_len &&
 	    wpa_eapol_key_mic(kck, kck_len, sm->key_mgmt, ver, msg, msg_len,
 			      key_mic)) {
 		wpa_msg(sm->ctx->msg_ctx, MSG_ERROR,