Closed
Bug 1113017
Opened 10 years ago
Closed 10 years ago
[B2G][CBS] Additional message channel is set unexpectedly from ril_worker to ril daemon in GSM configuration.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:2.0M+, firefox35 wontfix, firefox36 wontfix, firefox37 fixed, b2g-v2.0 wontfix, b2g-v2.0M fixed, b2g-v2.1 fixed, b2g-v2.1S fixed, b2g-v2.2 fixed)
People
(Reporter: bevis, Assigned: bevis)
References
Details
Attachments
(1 file)
2.59 KB,
patch
|
hsinyi
:
review+
bajaj
:
approval-mozilla-b2g34+
|
Details | Diff | Splinter Review |
1. In ril_worker.js, an array of half-closed ranges: [[from, to), [from, to), ...] is used to collect all the message ids from CBMI/CBMIR/CBMID/MMI. 2. In ril.h, the data structure RIL_GSM_BroadcastSmsConfigInfo is adopted by REQUEST_GSM_SET_BROADCAST_SMS_CONFIG: typedef struct { int fromServiceId; int toServiceId; int fromCodeScheme; int toCodeScheme; unsigned char selected; } RIL_GSM_BroadcastSmsConfigInfo; Where uFromServiceID - uToServiceID defines a range of CBM message identifiers. It seems not necessary to exclude the toServiceId from the range. 3. However, things go wrong in setGsmSmsBroadcastConfig() in ril_worker.js: setGsmSmsBroadcastConfig: function(config) { let Buf = this.context.Buf; Buf.newParcel(REQUEST_GSM_SET_BROADCAST_SMS_CONFIG); let numConfigs = config ? config.length / 2 : 0; Buf.writeInt32(numConfigs); for (let i = 0; i < config.length;) { Buf.writeInt32(config[i++]); Buf.writeInt32(config[i++]); <- This is wrong! It shall be config[i++]-1. Buf.writeInt32(0x00); Buf.writeInt32(0xFF); Buf.writeInt32(1); } Buf.sendParcel(); } This bug is filed to fix the problem mentioned above to ensure the search list to be set properly.
Assignee | ||
Comment 1•10 years ago
|
||
Hi Hsinyi, May I have your review for this quick fix? (Modification for the corresponding test case is also included) Thanks!
Attachment #8538383 -
Flags: review?(htsai)
Comment 2•10 years ago
|
||
Comment on attachment 8538383 [details] [diff] [review] Patch v1: Update SearchList with correct ranges in GSM configuration. r=htsai. Review of attachment 8538383 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +2154,2 @@ > Buf.writeInt32(config[i++]); > + Buf.writeInt32(config[i++] - 1); Nice catch, thank you.
Attachment #8538383 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 3•10 years ago
|
||
update try server result: https://tbpl.mozilla.org/?tree=Try&rev=cb4c0e7a536d
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/062566b84d83
Flags: in-testsuite+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/062566b84d83
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S3 (9jan)
Assignee | ||
Updated•9 years ago
|
blocking-b2g: --- → 2.0M?
Updated•9 years ago
|
Blocks: Woodduck
blocking-b2g: 2.0M? → 2.0M+
status-b2g-v2.0:
--- → affected
status-b2g-v2.0M:
--- → affected
status-b2g-v2.1:
--- → affected
status-b2g-v2.1S:
--- → affected
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Josh Cheng [:josh] from comment #6) > Hi Bevis, > 2.0M+ Thanks! The same patch can be applied to v2.0M without conflict.
Flags: needinfo?(btseng)
Comment 10•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0m/rev/10afe747b740
Flags: needinfo?(kli)
Comment 11•9 years ago
|
||
Is this needed on v2.1 and/or v2.1s?
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8538383 [details] [diff] [review] Patch v1: Update SearchList with correct ranges in GSM configuration. r=htsai. NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): N/A User impact if declined: 1. Additional CBS Channel will be listened unexpectedly. 2. Cause configuration failed when enabling the CBS Channel 65534 as mentioned in duplicated bug 1121801. Testing completed: Yes. Test Case included. Risk to taking this patch (and alternatives if risky): No. String or UUID changes made by this patch:N/A
Attachment #8538383 -
Flags: approval-mozilla-b2g34?
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #11) > Is this needed on v2.1 and/or v2.1s? Thanks for reminding this! :) I've requested the approval for uplifting to v2.1.
Flags: needinfo?(btseng)
Updated•9 years ago
|
Attachment #8538383 -
Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Comment 14•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/5150abb65d20
You need to log in
before you can comment on or make changes to this bug.
Description
•