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

Commit a9c2ef84 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am e22eb863: Merge "fix start driver for corner cases DO NOT MERGE" into gingerbread

Merge commit 'e22eb863' into gingerbread-plus-aosp

* commit 'e22eb863':
  fix start driver for corner cases DO NOT MERGE
parents 9a12a3c8 e22eb863
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -1286,7 +1286,6 @@ public class WifiStateTracker extends NetworkStateTracker {
                        if (macaddr != null) {
                            mWifiInfo.setMacAddress(macaddr);
                        }
                        if (mRunState == RUN_STATE_STARTING) {
                        mRunState = RUN_STATE_RUNNING;
                        if (!mIsScanOnly) {
                            reconnectCommand();
@@ -1296,7 +1295,6 @@ public class WifiStateTracker extends NetworkStateTracker {
                            scan(true);
                        }
                    }
                    }
                    break;
                case DRIVER_HUNG:
                    Log.e(TAG, "Wifi Driver reports HUNG - reloading.");
@@ -1614,12 +1612,10 @@ public class WifiStateTracker extends NetworkStateTracker {
    }

    public synchronized boolean restart() {
        if (mRunState == RUN_STATE_STOPPED) {
        if (isDriverStopped()) {
            mRunState = RUN_STATE_STARTING;
            resetConnections(true);
            return startDriver();
        } else if (mRunState == RUN_STATE_STOPPING) {
            mRunState = RUN_STATE_STARTING;
        }
        return true;
    }