commit fdd5d166b5a51f6bdfb77caf277c835328406c17
parent 155c266d6c29ef7dfa18d19387f83e20ad22f104
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 13 Jan 2023 13:24:35 -0800
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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)