Bug 961571 - Part 2: Handle ims apn type in RILNetworkInterface. r=hsinyi

This commit is contained in:
Edgar Chen 2014-02-26 00:08:00 +08:00
parent 6a1e6b6c13
commit 53506b43d4

View File

@ -4214,6 +4214,7 @@ RILNetworkInterface.prototype = {
NETWORK_TYPE_MOBILE: Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE,
NETWORK_TYPE_MOBILE_MMS: Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_MMS,
NETWORK_TYPE_MOBILE_SUPL: Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_SUPL,
NETWORK_TYPE_MOBILE_IMS: Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_IMS,
// The network manager should only need to add the host route for "other"
// types, which is the same handling method as the supl type. So let the
// definition of other types to be the same as the one of supl type.
@ -4246,6 +4247,9 @@ RILNetworkInterface.prototype = {
if (this.connectedTypes.indexOf("supl") != -1) {
return this.NETWORK_TYPE_MOBILE_SUPL;
}
if (this.connectedTypes.indexOf("ims") != -1) {
return this.NETWORK_TYPE_MOBILE_IMS;
}
return this.NETWORK_TYPE_MOBILE_OTHERS;
},