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 <j@w1.fi>
This commit is contained in:
parent
4cfa8b92ba
commit
84972999ba
1 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
if (wpa_key_mgmt_ft(sm->key_mgmt)) {
|
||||||
int res;
|
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
|
* Add PMKR1Name into RSN IE (PMKID-List) and add MDIE and
|
||||||
* FTIE from (Re)Association Response.
|
* 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);
|
os_free(rsn_ie_buf);
|
||||||
return -1;
|
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) {
|
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,
|
os_memcpy(rsn_ie_buf + wpa_ie_len, sm->assoc_resp_ies,
|
||||||
sm->assoc_resp_ies_len);
|
sm->assoc_resp_ies_len);
|
||||||
wpa_ie_len += sm->assoc_resp_ies_len;
|
wpa_ie_len += sm->assoc_resp_ies_len;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue