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

Commit e4087a5c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wifi: Disable the network based on the Deauth reason code."

parents 5a7d1dc6 b28cebcf
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -99,6 +99,14 @@ class SupplicantStateTracker extends StateMachine {
            mWifiConfigStore.enableAllNetworks();
            mNetworksDisabledDuringConnect = false;
        }

        /* If the max supplicant loop iterations is reached or authentication
         * failure due to wrong password, then disable that network
         */
        if (disableReason == WifiConfiguration.DISABLED_AUTH_FAILURE) {
            Log.e(TAG, "reason DISABLED_AUTH_FAILURE ");
            mWifiConfigStore.disableNetwork(netId, disableReason);
        }
    }

    private void transitionOnSupplicantStateChange(StateChangeResult stateChangeResult) {