Closed
Bug 944234
Opened 12 years ago
Closed 12 years ago
[Fugu] [B2G] The cardState of second sim card is always 'unknown'
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:1.3+, firefox28 fixed, b2g-v1.3 fixed)
People
(Reporter: edgar, Assigned: edgar)
Details
Attachments
(2 files)
|
524.45 KB,
text/plain
|
Details | |
|
1.49 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
Put two sim card into fugu device, the cardState of second sim card is always 'unknown'.
| Assignee | ||
Updated•12 years ago
|
Summary: [Fugu] [B2G] ardState of second sim card always returns 'unknown' → [Fugu] [B2G] The cardState of second sim card is always 'unknown'
| Assignee | ||
Comment 1•12 years ago
|
||
Quick checking the log:
*First sim:
11-28 11:47:20.150 106 106 I Gecko : -*- RadioInterface[0]: Received message from worker: {"rilMessageType":"cardstatechange","cardState":"ready"}
11-28 11:47:24.520 106 106 I Gecko : -*- RILContentHelper: Received message 'RIL:CardStateChanged': {"clientId":0,"data":{"rilMessageType":"cardstatechange","cardState":"ready"}}
*Second sim:
11-28 11:47:19.990 106 106 I Gecko : -*- RadioInterface[1]: Received message from worker: {"rilMessageType":"cardstatechange","cardState":"pukRequired"}
// But the RILContentHelper did not get the RIL:CardStateChange IPC message for second sim card.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → echen
| Assignee | ||
Comment 2•12 years ago
|
||
=====
// got the cardState change for both two sim
11-28 11:47:19.990 106 106 I Gecko : -*- RadioInterface[1]: Received message from worker: {"rilMessageType":"cardstatechange","cardState":"pukRequired"}
11-28 11:47:20.150 106 106 I Gecko : -*- RadioInterface[0]: Received message from worker: {"rilMessageType":"cardstatechange","cardState":"ready"}
// got system-message-listener-read event
11-28 11:47:23.920 106 106 I GeckoDump: XXX FIXME : Got a mozContentEvent: system-message-listener-ready
====
Gecko got the cardState change for both two sim before system-message-listener is ready. In this case, |gMessageManager| will queue these events first and resent it after got system-message-listener-ready. But if the there two events with same message name, |gMessageManager| will only keep the new one and drop the old one [1].
So in this case the cardStateChange of second sim is dropped by |gMessageManager|.
[1] http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/RadioInterfaceLayer.js?from=RadioInterfaceLayer.js#305
| Assignee | ||
Comment 3•12 years ago
|
||
We need to take clinet id into account, same message type with different client id should be treated as a different message.
Attachment #8340178 -
Flags: review?(htsai)
Comment 4•12 years ago
|
||
Comment on attachment 8340178 [details] [diff] [review]
Patch, v1
Review of attachment 8340178 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you!
Attachment #8340178 -
Flags: review?(htsai) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Comment 6•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
blocking-b2g: --- → 1.3?
Target Milestone: --- → 1.3 Sprint 6 - 12/6
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 8•12 years ago
|
||
Seems like this is a blocker for multi-SIM support.
blocking-b2g: 1.3? → 1.3+
Updated•12 years ago
|
status-b2g-v1.3:
--- → fixed
status-firefox28:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•