diff options
author | Quang Luong <qal@google.com> | 2020-09-09 19:00:09 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2020-09-09 19:47:27 -0700 |
commit | 5d1c5997e933e4315aad82ad4b9da89c7e9da296 (patch) | |
tree | e2a74fd5f8ea4861815c932d1642b9124fc96da3 | |
parent | 3f749b85c6608dc23b9bfc4a6b8a0392587df7bc (diff) |
[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
-rw-r--r-- | libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java | 6 |
1 files changed, 0 insertions, 6 deletions
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) { |