3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

monitor: Use print_ie in auth frame dumper

Do not assume that the challenge IE is present or the only IE in the
authentication frame
This commit is contained in:
Denis Kenzior 2019-10-17 12:04:08 -05:00
parent e34af3cfac
commit e4dc23a523

View File

@ -3718,13 +3718,8 @@ static void print_authentication_mgmt_frame(unsigned int level,
L_LE16_TO_CPU(body->transaction_sequence) > 3) L_LE16_TO_CPU(body->transaction_sequence) > 3)
return; return;
ie_tlv_iter_init(&iter, body->ies, (const uint8_t *) mmpdu + size - print_ie(level + 1, "IEs", body->ies,
body->ies); (const uint8_t *) mmpdu + size - body->ies);
ie_tlv_iter_next(&iter);
print_attr(level + 1, "Challenge text: \"%s\" (%u)",
ie_tlv_iter_get_data(&iter),
ie_tlv_iter_get_length(&iter));
} }
static void print_deauthentication_mgmt_frame(unsigned int level, static void print_deauthentication_mgmt_frame(unsigned int level,