Bug 1087131 - Part 1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen
authorBevis Tseng <btseng@mozilla.com>
Wed, 22 Oct 2014 18:26:50 +0800
changeset 212195 249161b3fda7ddab97323bdf48eb5dcedbc46daf
parent 212194 4832e93e168ecea1618f8a6d496cc52080610a34
child 212196 19c38453850fcdb0eadd935aa8ba89d286f1162c
push id9560
push userkwierso@gmail.com
push dateFri, 24 Oct 2014 22:09:23 +0000
treeherderfx-team@c70f62375f7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechen
bugs1087131
milestone36.0a1
Bug 1087131 - Part 1: Filter DCS of STK Text String with MASK(0x0C) instead of (0x0F) according to 3GPP TS 23.040. r=echen
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -11254,17 +11254,17 @@ StkProactiveCmdHelperObject.prototype = 
     }
 
     let GsmPDUHelper = this.context.GsmPDUHelper;
     let text = {
       codingScheme: GsmPDUHelper.readHexOctet()
     };
 
     length--; // -1 for the codingScheme.
-    switch (text.codingScheme & 0x0f) {
+    switch (text.codingScheme & 0x0c) {
       case STK_TEXT_CODING_GSM_7BIT_PACKED:
         text.textString = GsmPDUHelper.readSeptetsToString(length * 8 / 7, 0, 0, 0);
         break;
       case STK_TEXT_CODING_GSM_8BIT:
         text.textString =
           this.context.ICCPDUHelper.read8BitUnpackedToString(length);
         break;
       case STK_TEXT_CODING_UCS2: