commit d8ca993a1ccef2773b041be96923e3370b2cde42
parent fdd5d166b5a51f6bdfb77caf277c835328406c17
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 13 Jan 2023 13:24:36 -0800
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.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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),