Closed Bug 835255 Opened 13 years ago Closed 12 years ago

B2G RIL: marionette test, dom/network/tests/marionette/test_mobile_operator_name.js, fail when enable EF_PNN

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: edgar, Assigned: kk1fff)

References

Details

Attachments

(3 files, 1 obsolete file)

When I tried to implement dynamic SIM EF in emulator [1], I found if enable the EF_PNN, marionette tests [2] will fail. So open this bug for tracking. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=833174 [2] dom/network/tests/marionette/test_mobile_operator_name.js
Summary: B2G RIL: marionette test, , when enable EF_PNN → B2G RIL: marionette test, dom/network/tests/marionette/test_mobile_operator_name.js, fail when enable EF_PNN
Assignee: nobody → pwang
According to 3GPP TS 31.102 Sec. 4.2.58: "If the EF_OPL is not present, then the first record in EF_PNN is used for the default network name when registered in the HPLMN (if the EHPLMN list is not present or is empty) or an EHPLMN (if the EHPLMN list is present)." In current getNetworkNameFromICC, we use the first PNN record as network name when device is in home PLMN but current PLMN is not in OPL, no matter OPL is present or not.
Attachment #735127 - Flags: review?(vyang)
Adding test cases: 1. Device is in a PLMN that is not home nor listed in OPL. 2. Device is in a PLMN that is listed in OPL but not home. 3. Device is in the home PLMN but the PLMN is not listed in OPL.
Attachment #735128 - Flags: review?(vyang)
Component: General → DOM: Device Interfaces
Product: Boot2Gecko → Core
Version: unspecified → Trunk
Attachment #735130 - Flags: review?(vyang) → review+
Attachment #735128 - Flags: review?(vyang) → review+
Comment on attachment 735127 [details] [diff] [review] Part 1: we should use PLMN from network when phone is in PLMN that is not listed in OPL Review of attachment 735127 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the late. Could you help having another revision? ::: dom/system/gonk/ril_worker.js @@ +10940,5 @@ > + } > + > + // Return a new object to avoid global variable, PNN, be modified by accident. > + return { fullName: pnnEntry.fullName || "", > + shortName: pnnEntry.shortName || "" }; I think you can reuse these lines with following code that deals with valid OPL entries.
Attachment #735127 - Flags: review?(vyang) → review+
try: https://tbpl.mozilla.org/?tree=Try&rev=427e17750f47 see if we can land the first part before updating emulator.
Landing the first part: https://hg.mozilla.org/integration/mozilla-inbound/rev/ec43d0f8dca6 Then we should update emulator in tbpl, then land the test case.
Hi Vicamo, could you help to checkin the pull request? https://github.com/mozilla-b2g/platform_external_qemu/pull/27 Thanks.
Flags: needinfo?(vyang)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
(In reply to Patrick Wang [:kk1fff] from comment #8) > Hi Vicamo, could you help to checkin the pull request? Done :)
Flags: needinfo?(vyang)
Depends on: 867518
Reopening because the test part haven't been landed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 869787
emulator is updated, try the test case: https://tbpl.mozilla.org/?tree=Try&rev=1070f9d54d2e
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: