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

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-09-03 00:21:18 +03:00 committed by Jouni Malinen
parent dc5bad48af
commit f5ff8ae6a7

View file

@ -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,