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

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

Merge "WIFI: Fix wifi auto-connect to other saved APs during WPS PIN scanning."

parents 16ed8dbd 88d765a0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1669,7 +1669,12 @@ public class WifiStateMachine extends StateMachine {
            enableBackgroundScanCommand(screenOn == false);
        }

        if (screenOn) enableAllNetworks();
        // While wps is running, DO NOT enabled all networks
        // to prevent auto-connect to other APs.
        if (screenOn && (getCurrentState() != mWpsRunningState)) {
            enableAllNetworks();
        }

        if (mUserWantsSuspendOpt.get()) {
            if (screenOn) {
                sendMessage(CMD_SET_SUSPEND_OPT_ENABLED, 0, 0);