commit d09b10699884644f617c6ad8eb455be3725ae886
parent 6ae9b4dc58d45e04c7b72a2a43e5f9292481636c
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 21 Jun 2023 12:36:33 -0700
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.
Diffstat:
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/ft.c b/src/ft.c
@@ -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;