commit b33d100f7b85be8f8e51eaf8584c98666ec02653
parent 04f563c3dcaf988e96774ef22140168ecdb3afaf
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 6 Aug 2021 16:02:11 -0700
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.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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);