summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Kline <ek@google.com> 2017-07-06 08:02:44 +0000
committer android-build-merger <android-build-merger@google.com> 2017-07-06 08:02:44 +0000
commitaa9d12fa56ad19c7eded04668ed576aecff51ea5 (patch)
tree9f9cb4786ea7a97731f16e3332174fb492e4e71f
parente62a5fc7d3896336f7ce906c1b691d6eec8f5b18 (diff)
parentb171a46d193db3eee0ad837aa94c47d7752587a6 (diff)
Merge "Clearly log tether_offload_disabled setting status in start()"
am: b171a46d19 Change-Id: I999926bf0b67b12caadeea2d3766d8f69913bafe
-rw-r--r--services/core/java/com/android/server/connectivity/tethering/OffloadController.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/connectivity/tethering/OffloadController.java b/services/core/java/com/android/server/connectivity/tethering/OffloadController.java
index 78487b713f2e..20ec20681ce2 100644
--- a/services/core/java/com/android/server/connectivity/tethering/OffloadController.java
+++ b/services/core/java/com/android/server/connectivity/tethering/OffloadController.java
@@ -58,7 +58,12 @@ public class OffloadController {
}
public void start() {
- if (isOffloadDisabled() || started()) return;
+ if (started()) return;
+
+ if (isOffloadDisabled()) {
+ mLog.i("tethering offload disabled");
+ return;
+ }
if (!mConfigInitialized) {
mConfigInitialized = mHwInterface.initOffloadConfig();