From 84972999ba915eed2f9cf2b16d63adaa67e46c0e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 24 Dec 2019 18:57:33 +0200 Subject: [PATCH] FT: More debug prints for RSNE modification for EAPOL-Key msg 2/4 This buffer was getting corrupted, so add more details to make it clearer what causes the corruption should this type of regression show up again. Signed-off-by: Jouni Malinen --- src/rsn_supp/wpa.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index 504feaf2a..e9df04e11 100644 --- a/src/rsn_supp/wpa.c +++ b/src/rsn_supp/wpa.c @@ -488,6 +488,8 @@ int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, if (wpa_key_mgmt_ft(sm->key_mgmt)) { int res; + wpa_hexdump(MSG_DEBUG, "WPA: WPA IE before FT processing", + wpa_ie, wpa_ie_len); /* * Add PMKR1Name into RSN IE (PMKID-List) and add MDIE and * FTIE from (Re)Association Response. @@ -503,8 +505,14 @@ int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, os_free(rsn_ie_buf); return -1; } + wpa_hexdump(MSG_DEBUG, + "WPA: WPA IE after PMKID[PMKR1Name] addition into RSNE", + rsn_ie_buf, wpa_ie_len); if (sm->assoc_resp_ies) { + wpa_hexdump(MSG_DEBUG, "WPA: Add assoc_resp_ies", + sm->assoc_resp_ies, + sm->assoc_resp_ies_len); os_memcpy(rsn_ie_buf + wpa_ie_len, sm->assoc_resp_ies, sm->assoc_resp_ies_len); wpa_ie_len += sm->assoc_resp_ies_len;