diff options
author | Vinit Deshpande <vinitd@google.com> | 2015-07-14 00:39:16 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-14 00:39:16 +0000 |
commit | 266576c1a63f7be4d0ca9351dbb8c80d539be5f0 (patch) | |
tree | c6677c56460173fac35b5693f5aa5ddb55a2887e /packages/SettingsLib | |
parent | 5ab7011041a1944f9595c9361858639507cf63a3 (diff) | |
parent | 7ad8e6c8499f5b5327f6b81fb34e15f5d855a641 (diff) | |
download | frameworks_base-266576c1a63f7be4d0ca9351dbb8c80d539be5f0.zip frameworks_base-266576c1a63f7be4d0ca9351dbb8c80d539be5f0.tar.gz frameworks_base-266576c1a63f7be4d0ca9351dbb8c80d539be5f0.tar.bz2 |
am 7ad8e6c8: am 3f96f8b2: am 0bd08fc2: Merge "Fix multiple SSIDs for same Passpoint issues" into mnc-dev
* commit '7ad8e6c8499f5b5327f6b81fb34e15f5d855a641':
Fix multiple SSIDs for same Passpoint issues
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java | 6 |
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. |