Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ee4b5b5 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Wifi: Make sure the interface is up before telling supplicant to start the driver.



This fixes a problem that resulted in the interface not being up when resuming
an authenticated connection.

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 7a45a2ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1467,6 +1467,7 @@ public class WifiStateTracker extends NetworkStateTracker {
    public synchronized boolean restart() {
        if (mRunState == RUN_STATE_STOPPED) {
            mRunState = RUN_STATE_STARTING;
            resetInterface(true);
            return WifiNative.startDriverCommand();
        } else if (mRunState == RUN_STATE_STOPPING) {
            mRunState = RUN_STATE_STARTING;