Closed
Bug 824194
Opened 12 years ago
Closed 12 years ago
B2G STK: refactor the TLV size handler in sendStkTerminalResponse
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:shira+, firefox19 wontfix, firefox20 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
People
(Reporter: edgar, Assigned: edgar)
Details
(Whiteboard: QARegressExclude)
Attachments
(1 file, 1 obsolete file)
Please check the bug 804667 comment #20.
::: dom/system/gonk/ril_worker.js
@@ +3178,5 @@
> + let timer = response.timer;
> + size = size +
> + ((timer.timerId ? TLV_TIMER_IDENTIFIER : 0) +
> + (timer.timerValue ? TLV_TIMER_VALUE : 0)) * 2;
> + }
Maybe we could do as sendICCEnvelopeCommand,
so we don't have to do '* 2' each time when we add a new TLV.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #695100 -
Flags: review?(allstars.chh)
Comment on attachment 695100 [details] [diff] [review]
Refactor the TLV size handler in sendStkTerminalResponse, v1
Review of attachment 695100 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker.js
@@ +3395,3 @@
> if (response.localInfo) {
> let localInfo = response.localInfo;
> + berLen = berLen +
seems += is easier
@@ +3406,1 @@
> }
Add an extra line here.
@@ +3406,4 @@
> }
> if (response.timer) {
> let timer = response.timer;
> + berLen = berLen +
ditto
@@ +3407,5 @@
> if (response.timer) {
> let timer = response.timer;
> + berLen = berLen +
> + (timer.timerId ? TLV_TIMER_IDENTIFIER : 0) +
> + (timer.timerValue ? TLV_TIMER_VALUE : 0);
Can any one of these two be optional?
seems
berLen += TLV_TIMER_SIZE;
should do the work.
where TLV_TIMER_SIZE is TLV_TIMER_IDENTFIER + TLV_TIMER_VAUE
Attachment #695100 -
Flags: review?(allstars.chh) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 695100 [details] [diff] [review]
Refactor the TLV size handler in sendStkTerminalResponse, v1
Review of attachment 695100 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker.js
@@ +3407,5 @@
> if (response.timer) {
> let timer = response.timer;
> + berLen = berLen +
> + (timer.timerId ? TLV_TIMER_IDENTIFIER : 0) +
> + (timer.timerValue ? TLV_TIMER_VALUE : 0);
timerValue is optional.
For below two action, it needs pass timer value to UICC.
- STK_TIMER_DEACTIVE
- STK_TIMER_GET_CURRENT_VALUE
But STK_TIMER_START needs not.
Assignee | ||
Comment 4•12 years ago
|
||
Address review comment #2
Attachment #695100 -
Attachment is obsolete: true
Assignee | ||
Comment 5•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
blocking-b2g: --- → shira+
Assignee | ||
Comment 8•12 years ago
|
||
Please merge bug 804667 into b2g18 first then this, or may have conflict.
Comment 9•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-firefox19:
--- → wontfix
status-firefox20:
--- → fixed
Target Milestone: --- → B2G C3 (12dec-1jan)
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → fixed
Not sure how I can verify this... Is there some way to easily verify this?
Hi, Naoki
This patch is refactoring about the PDU format for STK.
So if this patch works, you can navigator through STK menu successfully.
Step: Go into Sim Toolkit Menu, and select some item, if some sub-menu pop up, then it's success.
Updated•12 years ago
|
Whiteboard: QARegressExclude
Comment 12•12 years ago
|
||
Cannot verify, don't have access to SIM Toolkit.
You need to log in
before you can comment on or make changes to this bug.
Description
•