mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
device: On lost beacon always set roam_no_orig_ap
Even if we're already roaming or preparing to roam, setting this flag may still affect some step of the roam sequence so set it anyway.
This commit is contained in:
parent
660f321c3d
commit
17ad048c8c
@ -1488,7 +1488,8 @@ static void device_lost_beacon(struct device *device)
|
|||||||
{
|
{
|
||||||
l_debug("%d", device->index);
|
l_debug("%d", device->index);
|
||||||
|
|
||||||
if (device->preparing_roam || device->state == DEVICE_STATE_ROAMING)
|
if (device->state != DEVICE_STATE_ROAMING &&
|
||||||
|
device->state != DEVICE_STATE_CONNECTED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1500,6 +1501,9 @@ static void device_lost_beacon(struct device *device)
|
|||||||
*/
|
*/
|
||||||
device->roam_no_orig_ap = true;
|
device->roam_no_orig_ap = true;
|
||||||
|
|
||||||
|
if (device->preparing_roam || device->state == DEVICE_STATE_ROAMING)
|
||||||
|
return;
|
||||||
|
|
||||||
device_roam_trigger_cb(NULL, device);
|
device_roam_trigger_cb(NULL, device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user