am 266576c1: am 7ad8e6c8: am 3f96f8b2: am 0bd08fc2: Merge "Fix multiple SSIDs for same Passpoint issues" into mnc-dev

* commit '266576c1a63f7be4d0ca9351dbb8c80d539be5f0':
  Fix multiple SSIDs for same Passpoint issues
This commit is contained in:
Vinit Deshpande
2015-07-14 16:29:33 +00:00
committed by Android Git Automerger

View File

@@ -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.