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

Commit c4501f77 authored by Ji-Hwan Lee's avatar Ji-Hwan Lee
Browse files

Log supplicant restart count correctly

Currently, it's always 0.

Change-Id: I99b2d31e61e1ec7dfffc7a77e04f4059fd6869ef
parent 9324e04d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2085,9 +2085,9 @@ public class WifiStateMachine extends StateMachine {
                        transitionTo(mDriverLoadedState);
                        sendMessageDelayed(CMD_START_SUPPLICANT, SUPPLICANT_RESTART_INTERVAL_MSECS);
                    } else {
                        mSupplicantRestartCount = 0;
                        Log.e(TAG, "Failed " + mSupplicantRestartCount +
                                " times to start supplicant, unload driver");
                        mSupplicantRestartCount = 0;
                        transitionTo(mDriverLoadedState);
                        sendMessage(obtainMessage(CMD_UNLOAD_DRIVER, WIFI_STATE_UNKNOWN, 0));
                    }