From 5d1c5997e933e4315aad82ad4b9da89c7e9da296 Mon Sep 17 00:00:00 2001 From: Quang Luong Date: Wed, 9 Sep 2020 19:00:09 -0700 Subject: [WifiTrackerLib] Don't prompt password for never-connected networks Password shouldn't be prompted for secure saved networks that haven't been connected to. Bug: 160727383 Test: added a saved network via shell and manually connected to it, observe that password prompt does not pop up. Change-Id: Ib98fcbda077eacf22614aba766dba6ecb32a2ada --- .../src/com/android/wifitrackerlib/StandardWifiEntry.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libs') diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java index 5292e179a..53a14ec63 100644 --- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java +++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java @@ -681,12 +681,6 @@ public class StandardWifiEntry extends WifiEntry { return false; } - // The secured Wi-Fi entry is never connected. - if (getSecurity() != SECURITY_NONE && getSecurity() != SECURITY_OWE - && !wifiConfig.getNetworkSelectionStatus().hasEverConnected()) { - return true; - } - // The network is disabled because of one of the authentication problems. NetworkSelectionStatus networkSelectionStatus = wifiConfig.getNetworkSelectionStatus(); if (networkSelectionStatus.getNetworkSelectionStatus() != NETWORK_SELECTION_ENABLED) { -- cgit v1.2.3