mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 19:10:31 +01:00
wimax: fix connect-during-scan after d4ff43bc1e
Oops; mark prepare_done during stage1 not stage2 since stage1 is Prepare and stage2 isn't.
This commit is contained in:
parent
d4ff43bc1e
commit
3d898d1b66
1 changed files with 2 additions and 1 deletions
|
|
@ -750,6 +750,8 @@ real_act_stage1_prepare (NMDevice *device, NMDeviceStateReason *reason)
|
|||
|
||||
set_current_nsp (NM_DEVICE_WIMAX (device), nsp);
|
||||
|
||||
priv->prepare_done = TRUE;
|
||||
|
||||
/* If the device is scanning, it won't connect, so we have to wait until
|
||||
* it's not scanning to proceed to stage 2.
|
||||
*/
|
||||
|
|
@ -795,7 +797,6 @@ real_act_stage2_config (NMDevice *device, NMDeviceStateReason *reason)
|
|||
/* FIXME: Is 40 seconds good estimation? I have no idea */
|
||||
priv->activation_timeout_id = g_timeout_add_seconds (40, activation_timed_out, device);
|
||||
|
||||
priv->prepare_done = TRUE;
|
||||
return NM_ACT_STAGE_RETURN_POSTPONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue