Bug 874273: B2G RIL - return correct voice network type. r=yoshi
authorVicamo Yang <vyang@mozilla.com>
Fri, 07 Jun 2013 16:50:10 +0800
changeset 134263 c9541395dce7fcca90d9d1c7a04bfc3945187419
parent 134262 fb94126589a7b03cc042acc4b640a3a8ee1e9325
child 134264 1c199f8871abb3c11eaedea682c3406b6a66f4bf
push idunknown
push userunknown
push dateunknown
reviewersyoshi
bugs874273
milestone24.0a1
Bug 874273: B2G RIL - return correct voice network type. r=yoshi
dom/system/gonk/RadioInterfaceLayer.js
--- a/dom/system/gonk/RadioInterfaceLayer.js
+++ b/dom/system/gonk/RadioInterfaceLayer.js
@@ -956,20 +956,17 @@ RadioInterfaceLayer.prototype = {
    *                the RIL:VoiceInfoChanged message will not be sent.
    */
   updateVoiceConnection: function updateVoiceConnection(newInfo) {
     let voiceInfo = this.rilContext.voice;
     voiceInfo.state = newInfo.state;
     voiceInfo.connected = newInfo.connected;
     voiceInfo.roaming = newInfo.roaming;
     voiceInfo.emergencyCallsOnly = newInfo.emergencyCallsOnly;
-    // Unlike the data registration info, the voice info typically contains
-    // no (useful) radio tech information, so we have to manually set
-    // this here. (TODO GSM only for now, see bug 726098.)
-    voiceInfo.type = "gsm";
+    voiceInfo.type = newInfo.type;
 
     // Make sure we also reset the operator and signal strength information
     // if we drop off the network.
     if (newInfo.regState == RIL.NETWORK_CREG_STATE_UNKNOWN) {
       voiceInfo.network = null;
       voiceInfo.signalStrength = null;
       voiceInfo.relSignalStrength = null;
     }