3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 14:22:36 +01:00

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

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