From 3bc57288151f2c9e043dc7127377437dc9d72b60 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 5 Oct 2022 15:46:27 -0700 Subject: [PATCH] station: add two debug events for FT These events are sent if IWD fails to authentiate (ft-over-air-roam-failed) or if it falls back to over air after failing to use FT-over-DS (try-ft-over-air) --- src/station.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/station.c b/src/station.c index fdeab7c1..1ebd13ad 100644 --- a/src/station.c +++ b/src/station.c @@ -2293,6 +2293,7 @@ static bool station_ft_work_ready(struct wiphy_radio_work_item *item) ret = ft_associate(netdev_get_ifindex(station->netdev), bss->addr); if (ret == -ENOENT) { + station_debug_event(station, "ft-over-air-roam-failed"); try_next: station_transition_start(station); return true; @@ -2337,9 +2338,10 @@ static bool station_fast_transition(struct station *station, ret = ft_associate(netdev_get_ifindex(station->netdev), bss->addr); /* No action responses from this BSS, try over air */ - if (ret == -ENOENT) + if (ret == -ENOENT) { + station_debug_event(station, "try-ft-over-air"); goto try_over_air; - else if (ret < 0) + } else if (ret < 0) return false; station->connected_bss = bss;