diff mbox series

[v2,3/3] station: cancel roam timer when FT starts

Message ID 20230113212436.794519-3-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [v2,1/3] station: add checks to prevent multiple roam scans | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Jan. 13, 2023, 9:24 p.m. UTC
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 mbox series

Patch

diff --git a/src/station.c b/src/station.c
index ed98a8d8..381065a2 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2299,6 +2299,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),