Bug 977479 - updateUpStream function in NetworkService.js doesn't work. r=vchang
authorDimi Lee <dlee@mozilla.com>
Thu, 27 Feb 2014 15:40:00 +0800
changeset 170838 1337df57a282bd15842331123cbd57f3f3891aa9
parent 170837 661860e4d83347ad9e99da504ea8209f7d3720ff
child 170839 7c6b593daeb1900932418203fa5b1f1d99ae5293
push id5042
push uservchang@mozilla.com
push dateThu, 27 Feb 2014 10:42:45 +0000
treeherderb2g-inbound@1337df57a282 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvchang
bugs977479
milestone30.0a1
Bug 977479 - updateUpStream function in NetworkService.js doesn't work. r=vchang
dom/system/gonk/NetworkService.js
--- a/dom/system/gonk/NetworkService.js
+++ b/dom/system/gonk/NetworkService.js
@@ -510,25 +510,27 @@ NetworkService.prototype = {
       callback.enableUsbRndisResult(data.result, data.enable);
     });
   },
 
   updateUpStream: function(previous, current, callback) {
     let params = {
       cmd: "updateUpStream",
       isAsync: true,
-      previous: previous,
-      current: current
+      preInternalIfname: previous.internalIfname,
+      preExternalIfname: previous.externalIfname,
+      curInternalIfname: current.internalIfname,
+      curExternalIfname: current.externalIfname
     };
 
     this.controlMessage(params, function(data) {
       let code = data.resultCode;
       let reason = data.resultReason;
       if(DEBUG) debug("updateUpStream result: Code " + code + " reason " + reason);
-      callback.updateUpStreamResult(!isError(code), data.current.externalIfname);
+      callback.updateUpStreamResult(!isError(code), data.curExternalIfname);
     });
   },
 
   shutdown: false,
 
   observe: function observe(aSubject, aTopic, aData) {
     switch (aTopic) {
       case "xpcom-shutdown":