Closed
Bug 1014408
Opened 11 years ago
Closed 11 years ago
B2G RIL: show empty APN for 405-05 SIM.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:-)
RESOLVED
FIXED
blocking-b2g | - |
People
(Reporter: sku, Assigned: sku)
Details
Attachments
(1 file, 6 obsolete files)
7.40 KB,
patch
|
sku
:
review+
|
Details | Diff | Splinter Review |
Currently, Gecko will treat MNC as length 3 (see [1]) if EF_AD does not specify the length on the 4th byte (see [2]) for those MCC equals to 405 case.
However, AOSP made a table (see [3]) to handle those exception cases.
It would be helpful if Gecko can provide such mechanism to avoid empty APN problem.
[1] - http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_consts.js?from=ril_consts.js&case=true#2995
[2] - 3GPP TS 31.102, 4.2.18 EFAD (Administrative Data)
[3] - http://code.metager.de/source/xref/android/4.0.3/frameworks-base/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java#155
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8427589 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8429900 [details] [diff] [review]
Bug 1014408 - B2G RIL: show empty APN for 404-05 SIM.
Review of attachment 8429900 [details] [diff] [review]:
-----------------------------------------------------------------
Hi Hsinyi:
May I have your comment on this patch?
Thanks!!
Shawn
Attachment #8429900 -
Flags: review?(htsai)
Comment 4•11 years ago
|
||
Comment on attachment 8429900 [details] [diff] [review]
Bug 1014408 - B2G RIL: show empty APN for 404-05 SIM.
Review of attachment 8429900 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_consts.js
@@ +2971,5 @@
> this.INFO_REC_EXTENDED_DISPLAY_CONNECTED_NUMBER = 0x9A;
> this.INFO_REC_EXTENDED_DISPLAY_TEXT = 0x9B;
>
> /**
> + * The table for MCC/MNC which the length of MNC is 3.
Looks it's inevitable that we need to maintain a table. I am fine with the concept of the solution. However, we all know the main issue behind is the update! Let's keep this in mind until we figure out a good update mechanism. :)
@@ +2977,5 @@
> + * This table is built from below links.
> + * - http://www.itu.int/pub/T-SP-E.212B-2013
> + * - http://en.wikipedia.org/wiki/Mobile_Network_Code
> + */
> +this.PLMN_HAVING_3DIGITS_MNC = [
I am thinking about a 2-dimention table. I.e., use "MCC" as the 1st index, then check MNC; in this way, if the MCC isn't 405, we don't need to go through these 100+ items.
Attachment #8429900 -
Flags: review?(htsai)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8429900 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Summary: B2G RIL: show empty APN for 404-05 SIM. → B2G RIL: show empty APN for 405-05 SIM.
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8430514 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8430515 -
Flags: review?(htsai)
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Hsin-Yi Tsai (OOO 5/30 ~ 6/8) [:hsinyi] from comment #4)
> Comment on attachment 8429900 [details] [diff] [review]
> Bug 1014408 - B2G RIL: show empty APN for 404-05 SIM.
>
> Review of attachment 8429900 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/system/gonk/ril_consts.js
> @@ +2971,5 @@
> > this.INFO_REC_EXTENDED_DISPLAY_CONNECTED_NUMBER = 0x9A;
> > this.INFO_REC_EXTENDED_DISPLAY_TEXT = 0x9B;
> >
> > /**
> > + * The table for MCC/MNC which the length of MNC is 3.
>
> Looks it's inevitable that we need to maintain a table. I am fine with the
> concept of the solution. However, we all know the main issue behind is the
> update! Let's keep this in mind until we figure out a good update mechanism.
> :)
Yes, agree with you. However, the 4th byte of EF_AD is mandatory for new SIM (begin from R99). There should be no issue on new card, but we still need to figure out how to handle those SIM w/o the 4th byte of EF_AD if the table we created has anything wrong anyway.
>
> @@ +2977,5 @@
> > + * This table is built from below links.
> > + * - http://www.itu.int/pub/T-SP-E.212B-2013
> > + * - http://en.wikipedia.org/wiki/Mobile_Network_Code
> > + */
> > +this.PLMN_HAVING_3DIGITS_MNC = [
>
> I am thinking about a 2-dimention table. I.e., use "MCC" as the 1st index,
> then check MNC; in this way, if the MCC isn't 405, we don't need to go
> through these 100+ items.
Address in new patch. Please take a look on it.:)
Comment 8•11 years ago
|
||
Comment on attachment 8430515 [details] [diff] [review]
Bug 1014408 - B2G RIL: show empty APN for 405-05 SIM. v2.
Review of attachment 8430515 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_consts.js
@@ +2975,5 @@
> + * The table for MCC/MNC which the length of MNC is 3.
> + *
> + * This table is built from below links.
> + * - http://www.itu.int/pub/T-SP-E.212B-2013
> + * - http://en.wikipedia.org/wiki/Mobile_Network_Code
How are we dealing with the contents of these two tables? Union part?
I noticed MCC 374, 724, 502, 330 has both two and three-digit MNC. I think we should take care of them all in this bug. Please help complete the table, thanks.
Attachment #8430515 -
Flags: review?(htsai)
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Hsin-Yi Tsai (OOO 5/30 ~ 6/8) [:hsinyi] from comment #8)
> Comment on attachment 8430515 [details] [diff] [review]
> Bug 1014408 - B2G RIL: show empty APN for 405-05 SIM. v2.
>
> Review of attachment 8430515 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/system/gonk/ril_consts.js
> @@ +2975,5 @@
> > + * The table for MCC/MNC which the length of MNC is 3.
> > + *
> > + * This table is built from below links.
> > + * - http://www.itu.int/pub/T-SP-E.212B-2013
> > + * - http://en.wikipedia.org/wiki/Mobile_Network_Code
>
> How are we dealing with the contents of these two tables? Union part?
Yes, union.
>
> I noticed MCC 374, 724, 502, 330 has both two and three-digit MNC. I think
> we should take care of them all in this bug. Please help complete the table,
> thanks.
Sure, will address this in next patch. Thanks!!
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8430515 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8430643 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8430645 -
Flags: review?(htsai)
Comment 12•11 years ago
|
||
Comment on attachment 8430645 [details] [diff] [review]
Bug 1014408 - B2G RIL: show empty APN for 405-05 SIM. v3.
Review of attachment 8430645 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you, r=me with comment addressed.
::: dom/system/gonk/ril_consts.js
@@ +2989,5 @@
> + ["130", // Digicel Trinidad and Tobago Ltd.
> + "140" // LaqTel Ltd.
> + ],
> + // India.
> + "405":
Per T-SP-E.212B-2013, there's also MNC 000.
Attachment #8430645 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Attachment #8430645 -
Attachment is obsolete: true
Attachment #8431379 -
Flags: review+
Assignee | ||
Comment 14•11 years ago
|
||
try is green - https://tbpl.mozilla.org/?tree=Try&rev=c2614d8f69e7
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 15•11 years ago
|
||
AIK, On tarako, there is a work around in gaia apn list to display the APN correctly for some special case. I think v1.3t should pick this patch to solve the APN isse with the right solution.
blocking-b2g: --- → 1.3T?
Comment 16•11 years ago
|
||
Assignee: nobody → sku
Keywords: checkin-needed
Comment 17•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 18•11 years ago
|
||
if this is not blocking any partner release, let's limit our change to 1.3T
blocking-b2g: 1.3T? → -
Comment 19•11 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #18)
> if this is not blocking any partner release, let's limit our change to 1.3T
Joe, if this can be landed in 1.3t, partner do not need to do some work around in gaia to display APN correctly. Work around is done case by case, but this can fix similar issues by one patch.
You need to log in
before you can comment on or make changes to this bug.
Description
•