FT: Debug print of IE parsing element details
This makes it easier to debug issues in processing FT frames. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
55b3cda775
commit
df3bf6870b
1 changed files with 24 additions and 0 deletions
|
@ -923,6 +923,7 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len,
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case WLAN_EID_RSN:
|
case WLAN_EID_RSN:
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: RSNE", pos, len);
|
||||||
parse->rsn = pos;
|
parse->rsn = pos;
|
||||||
parse->rsn_len = len;
|
parse->rsn_len = len;
|
||||||
ret = wpa_parse_wpa_ie_rsn(parse->rsn - 2,
|
ret = wpa_parse_wpa_ie_rsn(parse->rsn - 2,
|
||||||
|
@ -944,12 +945,14 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_MOBILITY_DOMAIN:
|
case WLAN_EID_MOBILITY_DOMAIN:
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: MDE", pos, len);
|
||||||
if (len < sizeof(struct rsn_mdie))
|
if (len < sizeof(struct rsn_mdie))
|
||||||
return -1;
|
return -1;
|
||||||
parse->mdie = pos;
|
parse->mdie = pos;
|
||||||
parse->mdie_len = len;
|
parse->mdie_len = len;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_FAST_BSS_TRANSITION:
|
case WLAN_EID_FAST_BSS_TRANSITION:
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE", pos, len);
|
||||||
if (use_sha384) {
|
if (use_sha384) {
|
||||||
const struct rsn_ftie_sha384 *ftie_sha384;
|
const struct rsn_ftie_sha384 *ftie_sha384;
|
||||||
|
|
||||||
|
@ -957,6 +960,17 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len,
|
||||||
return -1;
|
return -1;
|
||||||
ftie_sha384 =
|
ftie_sha384 =
|
||||||
(const struct rsn_ftie_sha384 *) pos;
|
(const struct rsn_ftie_sha384 *) pos;
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-MIC Control",
|
||||||
|
ftie_sha384->mic_control, 2);
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-MIC",
|
||||||
|
ftie_sha384->mic,
|
||||||
|
sizeof(ftie_sha384->mic));
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-ANonce",
|
||||||
|
ftie_sha384->anonce,
|
||||||
|
WPA_NONCE_LEN);
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-SNonce",
|
||||||
|
ftie_sha384->snonce,
|
||||||
|
WPA_NONCE_LEN);
|
||||||
prot_ie_count = ftie_sha384->mic_control[1];
|
prot_ie_count = ftie_sha384->mic_control[1];
|
||||||
if (wpa_ft_parse_ftie(pos, len, parse, 1) < 0)
|
if (wpa_ft_parse_ftie(pos, len, parse, 1) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -966,11 +980,21 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len,
|
||||||
if (len < sizeof(*ftie))
|
if (len < sizeof(*ftie))
|
||||||
return -1;
|
return -1;
|
||||||
ftie = (const struct rsn_ftie *) pos;
|
ftie = (const struct rsn_ftie *) pos;
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-MIC Control",
|
||||||
|
ftie->mic_control, 2);
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-MIC",
|
||||||
|
ftie->mic, sizeof(ftie->mic));
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-ANonce",
|
||||||
|
ftie->anonce, WPA_NONCE_LEN);
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: FTE-SNonce",
|
||||||
|
ftie->snonce, WPA_NONCE_LEN);
|
||||||
prot_ie_count = ftie->mic_control[1];
|
prot_ie_count = ftie->mic_control[1];
|
||||||
if (wpa_ft_parse_ftie(pos, len, parse, 0) < 0)
|
if (wpa_ft_parse_ftie(pos, len, parse, 0) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case WLAN_EID_TIMEOUT_INTERVAL:
|
case WLAN_EID_TIMEOUT_INTERVAL:
|
||||||
|
wpa_hexdump(MSG_DEBUG, "FT: Timeout Interval",
|
||||||
|
pos, len);
|
||||||
if (len != 5)
|
if (len != 5)
|
||||||
break;
|
break;
|
||||||
parse->tie = pos;
|
parse->tie = pos;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue