From 5030c0534fee3292591326e03dbd4bbef653c3ee Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Wed, 25 Jan 2012 13:47:54 -0800 Subject: [PATCH] Add additional debug When ConnectivityService#startUsingNetworkFeature is called and the special network is not available output some additional information. Change-Id: I34b226a208596fa6418f1f37a0feec1d274d493c --- services/java/com/android/server/ConnectivityService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index b7dc4a29d4..a372fb8e06 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -992,11 +992,15 @@ private NetworkStateTracker makeWimaxStateTracker() { NetworkInfo ni = network.getNetworkInfo(); if (ni.isAvailable() == false) { - if (DBG) log("special network not available"); if (!TextUtils.equals(feature,Phone.FEATURE_ENABLE_DUN_ALWAYS)) { + if (DBG) log("special network not available ni=" + ni.getTypeName()); return Phone.APN_TYPE_NOT_AVAILABLE; } else { // else make the attempt anyway - probably giving REQUEST_STARTED below + if (DBG) { + log("special network not available, but try anyway ni=" + + ni.getTypeName()); + } } }