Merge "Enable 464xlat on wifi." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1b11eb6480
@@ -91,8 +91,9 @@ public class Nat464Xlat extends BaseNetworkObserver {
|
|||||||
final boolean connected = nai.networkInfo.isConnected();
|
final boolean connected = nai.networkInfo.isConnected();
|
||||||
final boolean hasIPv4Address =
|
final boolean hasIPv4Address =
|
||||||
(nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false;
|
(nai.linkProperties != null) ? nai.linkProperties.hasIPv4Address() : false;
|
||||||
// Only support clat on mobile for now.
|
// Only support clat on mobile and wifi for now, because these are the only IPv6-only
|
||||||
return netType == TYPE_MOBILE && connected && !hasIPv4Address;
|
// networks we can connect to.
|
||||||
|
return connected && !hasIPv4Address && (netType == TYPE_MOBILE || netType == TYPE_WIFI);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user