From d8ca993a1ccef2773b041be96923e3370b2cde42 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 13 Jan 2023 13:24:36 -0800 Subject: [PATCH] station: cancel roam timer when FT starts Past commits should address any potential problems of the timer firing during FT, but its still good practice to cancel the timer once it is no longer needed, i.e. once FT has started. --- src/station.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/station.c b/src/station.c index e3c83697..7f1a1e24 100644 --- a/src/station.c +++ b/src/station.c @@ -2292,6 +2292,11 @@ static bool station_fast_transition(struct station *station, vendor_ies = network_info_get_extra_ies(info, bss, &iov_elems); handshake_state_set_vendor_ies(hs, vendor_ies, iov_elems); + if (station->roam_trigger_timeout) { + l_timeout_remove(station->roam_trigger_timeout); + station->roam_trigger_timeout = NULL; + } + /* Both ft_action/ft_authenticate will gate the associate work item */ if ((hs->mde[4] & 1)) ft_action(netdev_get_ifindex(station->netdev),