summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2015-07-13 23:36:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-13 23:36:17 +0000
commit7ad8e6c8499f5b5327f6b81fb34e15f5d855a641 (patch)
tree0830edcca090fe8bb8142f817bf073c2e93b9384 /packages/SettingsLib
parenta9845680221b1b343f13db0482264f07f07b57f1 (diff)
parent3f96f8b2fff2a2a7dc0a44d5f1219da8d7f2a5c2 (diff)
downloadframeworks_base-7ad8e6c8499f5b5327f6b81fb34e15f5d855a641.zip
frameworks_base-7ad8e6c8499f5b5327f6b81fb34e15f5d855a641.tar.gz
frameworks_base-7ad8e6c8499f5b5327f6b81fb34e15f5d855a641.tar.bz2
am 3f96f8b2: am 0bd08fc2: Merge "Fix multiple SSIDs for same Passpoint issues" into mnc-dev
* commit '3f96f8b2fff2a2a7dc0a44d5f1219da8d7f2a5c2': Fix multiple SSIDs for same Passpoint issues
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java b/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
index 048fb9a..348d0ec 100644
--- a/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
+++ b/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
@@ -625,9 +625,13 @@ public class AccessPoint implements Comparable<AccessPoint> {
mNetworkInfo != null && mNetworkInfo.getState() != State.DISCONNECTED;
}
+ public boolean isPasspoint() {
+ return mConfig != null && mConfig.isPasspoint();
+ }
+
/** Return whether the given {@link WifiInfo} is for this access point. */
private boolean isInfoForThisAccessPoint(WifiInfo info) {
- if (networkId != WifiConfiguration.INVALID_NETWORK_ID) {
+ if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {
return networkId == info.getNetworkId();
} else {
// Might be an ephemeral connection with no WifiConfiguration. Try matching on SSID.