3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

ft: add debug prints for FT-over-DS

This is consistent with the over-Air path, and makes it clear when
reading the logs if over-DS was used, if there was a response frame,
and if the frame failed to parse in some way.
This commit is contained in:
James Prestwood 2023-06-21 12:36:33 -07:00 committed by Denis Kenzior
parent 6ae9b4dc58
commit d09b106998

View File

@ -825,15 +825,21 @@ void __ft_rx_action(uint32_t ifindex, const uint8_t *frame, size_t frame_len)
ret = ft_over_ds_parse_action_response(frame, frame_len, &spa, &aa,
&ies, &ies_len);
if (ret != 0)
if (ret != 0) {
l_debug("Could not parse action response");
return;
}
info = ft_info_find(ifindex, aa);
if (!info)
if (!info) {
l_debug("No FT info found for BSS "MAC, MAC_STR(aa));
return;
}
if (!ft_parse_ies(info, hs, ies, ies_len))
if (!ft_parse_ies(info, hs, ies, ies_len)) {
l_debug("Could not parse action response IEs");
goto ft_error;
}
info->parsed = true;
@ -931,6 +937,8 @@ static bool ft_send_action(struct wiphy_radio_work_item *work)
memcpy(ft_req + 2, info->spa, 6);
memcpy(ft_req + 8, info->aa, 6);
l_debug("");
if (!ft_build_authenticate_ies(hs, hs->supplicant_ocvc, info->snonce,
ies, &len))
goto failed;