Bug 929864 - B2G DSDS: correctly update RILNetworkInterface when wifi connection changes. f=edgar r=hsinyi

This commit is contained in:
Jessica Jong 2013-10-24 02:01:00 +01:00
parent d65c039dec
commit 1484dc927b

View File

@ -244,7 +244,9 @@ NetworkManager.prototype = {
this.setAndConfigureActive();
// Update data connection when Wifi connected/disconnected
if (network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
this.mRIL.getRadioInterface(0).updateRILNetworkInterface();
for (let i = 0; i < this.mRIL.numRadioInterfaces; i++) {
this.mRIL.getRadioInterface(i).updateRILNetworkInterface();
}
}
this.onConnectionChanged(network);
@ -272,7 +274,9 @@ NetworkManager.prototype = {
this.setAndConfigureActive();
// Update data connection when Wifi connected/disconnected
if (network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
this.mRIL.getRadioInterface(0).updateRILNetworkInterface();
for (let i = 0; i < this.mRIL.numRadioInterfaces; i++) {
this.mRIL.getRadioInterface(i).updateRILNetworkInterface();
}
}
break;
}