From b33d100f7b85be8f8e51eaf8584c98666ec02653 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 6 Aug 2021 16:02:11 -0700 Subject: [PATCH] station: set preparing_roam flag on Roam() The preparing_roam flag is expected to be set by a few roam routines and normally this is done prior to the roam scan. The Roam() developer option was not doing this and would cause failed roams in some cases. --- src/station.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/station.c b/src/station.c index 3db0e65a..bc4e7539 100644 --- a/src/station.c +++ b/src/station.c @@ -3750,6 +3750,9 @@ static struct l_dbus_message *station_force_roam(struct l_dbus *dbus, l_debug("Attempting forced roam to BSS "MAC, MAC_STR(mac)); + /* The various roam routines expect this to be set from scanning */ + station->preparing_roam = true; + station_transition_start(station, target); return l_dbus_message_new_method_return(message);