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.
This commit is contained in:
James Prestwood 2021-08-06 16:02:11 -07:00 committed by Denis Kenzior
parent 04f563c3dc
commit b33d100f7b
1 changed files with 3 additions and 0 deletions

View File

@ -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);