Bug 796834 - B2G RIL: Setup data call returns fail during radio power changed. r=vyang
authorvliu <vliu@mozilla.com>
Fri, 05 Oct 2012 09:19:21 +0800
changeset 109542 33da5c33a23ef1cc6cd28b748b9e9cb823567872
parent 109541 03e4c6401c35ba6d598f7ab62c9ba5a505967564
child 109543 9c483486bf39341a159698a54a5a0081020fdc8d
push id23632
push userphilringnalda@gmail.com
push dateSun, 07 Oct 2012 19:14:37 +0000
treeherdermozilla-central@83d38854c21e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvyang
bugs796834
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 796834 - B2G RIL: Setup data call returns fail during radio power changed. r=vyang
dom/system/gonk/RadioInterfaceLayer.js
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -924,16 +924,20 @@ RadioInterfaceLayer.prototype = {
       debug("RIL is not ready for data connection: Phone's not registered " +
             "or doesn't have data connection.");
       return;
     }
     if (dataInfo.roaming && !this.dataCallSettings["roaming_enabled"]) {
       debug("We're roaming, but data roaming is disabled.");
       return;
     }
+    if (this._changingRadioPower) {
+      // We're changing the radio power currently, ignore any changes.
+      return;
+    }
 
     debug("Data call settings: connect data call.");
     this.dataNetworkInterface.connect(this.dataCallSettings);
   },
 
   /**
    * Track the active call and update the audio system as its state changes.
    */