nst.startMonitoring();
}
mNetTrackers[netType] = nst;
+ if (noMobileData) {
+ if (DBG) Slog.d(TAG, "tearing down WiMAX networks due to setting");
+ mNetTrackers[netType].teardown();
+ }
break;
default:
Slog.e(TAG, "Trying to create a DataStateTracker for an unknown radio type " +
}
mNetTrackers[ConnectivityManager.TYPE_MOBILE].reconnect();
}
+ if (mNetTrackers[ConnectivityManager.TYPE_WIMAX] != null) {
+ if (DBG) {
+ Slog.d(TAG, "starting up " + mNetTrackers[ConnectivityManager.TYPE_WIMAX]);
+ }
+ mNetTrackers[ConnectivityManager.TYPE_WIMAX].reconnect();
+ }
} else {
for (NetworkStateTracker nt : mNetTrackers) {
if (nt == null) continue;
nt.teardown();
}
}
+ if (mNetTrackers[ConnectivityManager.TYPE_WIMAX] != null) {
+ mNetTrackers[ConnectivityManager.TYPE_WIMAX].teardown();
+ }
}
}
" because Mobile Data Disabled");
continue;
}
+ if (mNetAttributes[checkType].mRadio == ConnectivityManager.TYPE_WIMAX &&
+ noMobileData) {
+ Slog.e(TAG, "not failing over to mobile type " + checkType +
+ " because Mobile Data Disabled");
+ continue;
+ }
NetworkStateTracker checkTracker = mNetTrackers[checkType];
NetworkInfo checkInfo = checkTracker.getNetworkInfo();
if (!checkInfo.isConnectedOrConnecting() || checkTracker.isTeardownRequested()) {