am 2d2a69b2: Merge "Enable 464xlat on wifi." into lmp-mr1-dev

* commit '2d2a69b2d3c03daa167fa1daba590a42dd3c3002':
  Enable 464xlat on wifi.
This commit is contained in:
Lorenzo Colitti
2014-10-30 13:33:59 +00:00
committed by Android Git Automerger

View File

@@ -91,8 +91,9 @@ public class Nat464Xlat extends BaseNetworkObserver {
final boolean connected = nai.networkInfo.isConnected();
final boolean hasIPv4Address =
(nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false;
// Only support clat on mobile for now.
return netType == TYPE_MOBILE && connected && !hasIPv4Address;
// Only support clat on mobile and wifi for now, because these are the only IPv6-only
// networks we can connect to.
return connected && !hasIPv4Address && (netType == TYPE_MOBILE || netType == TYPE_WIFI);
}
/**