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.
This commit is contained in:
James Prestwood 2023-01-13 13:24:36 -08:00 committed by Denis Kenzior
parent fdd5d166b5
commit d8ca993a1c
1 changed files with 5 additions and 0 deletions

View File

@ -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),