Update TCP buffer size when switching network type

Import of non-merging change 41612 from AOSP

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Ic44a557677ffe629e83ce1f522a9f058bee6e7b2
This commit is contained in:
Robert Greenwalt
2012-08-20 11:15:39 -07:00
parent 70ccd5bf80
commit adb8bf98d9

View File

@@ -2592,6 +2592,11 @@ public class ConnectivityService extends IConnectivityManager.Stub {
// @see bug/4455071 // @see bug/4455071
handleConnectivityChange(info.getType(), false); handleConnectivityChange(info.getType(), false);
break; break;
case NetworkStateTracker.EVENT_NETWORK_SUBTYPE_CHANGED:
info = (NetworkInfo) msg.obj;
type = info.getType();
updateNetworkSettings(mNetTrackers[type]);
break;
} }
} }
} }