summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/ConnectivityService.java
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2011-10-27 14:50:27 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2011-10-27 14:50:27 -0700
commit4efe58d8e7ff6186e5f0341174f22123e0934bee (patch)
tree8e8a00175ee9f5099a88f2898fd9b2ca522e5e02 /services/java/com/android/server/ConnectivityService.java
parent8d059ac5b186547a86bb92678c7d1cb13fd8ce1c (diff)
downloadframeworks_base-4efe58d8e7ff6186e5f0341174f22123e0934bee.zip
frameworks_base-4efe58d8e7ff6186e5f0341174f22123e0934bee.tar.gz
frameworks_base-4efe58d8e7ff6186e5f0341174f22123e0934bee.tar.bz2
Temp disable Tethering if DUN is required
Getting source-based routing working is too risk for this point in the project but tethering is broken otherwise, so disable the tethering option if DUN is required until we can get a real fix in. bug:5495862 Change-Id: I5e852bf30c887599024a8b61af86ffec1d5333af
Diffstat (limited to 'services/java/com/android/server/ConnectivityService.java')
-rw-r--r--services/java/com/android/server/ConnectivityService.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index 498bdfc..851cb33 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -2450,6 +2450,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
int defaultVal = (SystemProperties.get("ro.tether.denied").equals("true") ? 0 : 1);
boolean tetherEnabledInSettings = (Settings.Secure.getInt(mContext.getContentResolver(),
Settings.Secure.TETHER_SUPPORTED, defaultVal) != 0);
+ // Short term disabling of Tethering if DUN is required.
+ // TODO - fix multi-connection tethering using policy-base routing
+ int[] upstreamConnTypes = mTethering.getUpstreamIfaceTypes();
+ for (int i : upstreamConnTypes) {
+ if (i == ConnectivityManager.TYPE_MOBILE_DUN) return false;
+ }
return tetherEnabledInSettings && mTetheringConfigValid;
}