From fdd5d166b5a51f6bdfb77caf277c835328406c17 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 13 Jan 2023 13:24:35 -0800 Subject: [PATCH] station: check for FT work in station_cannot_roam 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 --git a/src/station.c b/src/station.c index 8129314b..e3c83697 100644 --- a/src/station.c +++ b/src/station.c @@ -2713,7 +2713,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)