diff mbox series

[v2,2/3] station: check for FT work in station_cannot_roam

Message ID 20230113212436.794519-2-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
If station has already started FT ensure station_cannot_roam takes
that into account. Since the state has not yet changed it must also
check if the FT work ID is set.
---
 src/station.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index 1a69b98a..ed98a8d8 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2720,7 +2720,8 @@  static bool station_cannot_roam(struct station *station)
 
 	return disabled || station->preparing_roam ||
 				station->state == STATION_STATE_ROAMING ||
-				station->state == STATION_STATE_FT_ROAMING;
+				station->state == STATION_STATE_FT_ROAMING ||
+				station->ft_work.id;
 }
 
 static void station_roam_trigger_cb(struct l_timeout *timeout, void *user_data)