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

Commit 3ac127ff authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Remove work around for driver state change

When we first ported wpa_supplicant 0.8, we had a work around
to fix the supplicant state change behavior from the driver.

Remove the work around since the driver behavior is fixed.

Bug: 5195278
Change-Id: I320f21ab01704931a3def6214b0cc40f214a688e
parent 0806d518
Loading
Loading
Loading
Loading
+5 −17
Original line number Diff line number Diff line
@@ -2528,19 +2528,7 @@ public class WifiStateMachine extends StateMachine {
                    mWakeLock.acquire();
                    WifiNative.startDriverCommand();
                    mWakeLock.release();
                   break;
                case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
                    SupplicantState state = handleSupplicantStateChange(message);
                    /* A driver start causes supplicant to first report an INTERFACE_DISABLED
                     * state before transitioning out of it for connection. Stay in
                     * DriverStoppedState until we get an INTERFACE_DISABLED state and transition
                     * to DriverStarting upon getting that
                     * TODO: Fix this when the supplicant can be made to just transition out of
                     * INTERFACE_DISABLED state when driver gets started
                     */
                    if (state == SupplicantState.INTERFACE_DISABLED) {
                    transitionTo(mDriverStartingState);
                    }
                    break;
                default:
                    return NOT_HANDLED;