Closed Bug 1160123 Opened 10 years ago Closed 10 years ago

Improve network selection choices

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
2.2 S12 (15may)
Tracking Status
firefox41 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

Details

(Whiteboard: [systemsfe])

Attachments

(1 file, 3 obsolete files)

I would like to make my device only select LTE and H+ networks, but this is not exposed in Settings app. As far as I understand, this is coming from gecko, from the RIL_PREFERRED_NETWORK_TYPE_TO_GECKO: https://hg.mozilla.org/mozilla-central/annotate/4b9b12c248dc/dom/system/gonk/ril_consts.js#l405 However, in ril.h, I do see other entries in the RIL_PreferredNetworkType enum, like LTE_WCDMA: https://www.codeaurora.org/cgit/quic/la/platform/hardware/ril/tree/include/telephony/ril.h?h=b2g_kk_3.5#n138
Attached patch auto-lte-wcdma.gecko.patch (obsolete) — Splinter Review
Attached patch auto-lte-wcdma.gaia.patch (obsolete) — Splinter Review
Attachment #8599848 - Flags: feedback?(htsai)
Attachment #8599848 - Flags: feedback?(arthur.chen)
Attachment #8599847 - Flags: feedback?(htsai)
Attachment #8599847 - Flags: feedback?(echen)
It seems to be doing the job on my Z3 Compact build
Works as expected: LTE and H+ are working, and no EDGE gets connected :)
Comment on attachment 8599847 [details] [diff] [review] auto-lte-wcdma.gecko.patch Review of attachment 8599847 [details] [diff] [review]: ----------------------------------------------------------------- "PREF_NET_TYPE_LTE_WCDMA" is also included in AOSP 5.0.0 standard [1] (RIL version 10). Thank you, Alexandre!! [1] https://github.com/android/platform_hardware_ril/commit/0e09487471b09e45b5fc1b1588a600f35157079a
Attachment #8599847 - Flags: feedback?(htsai)
Attachment #8599847 - Flags: feedback?(echen)
Attachment #8599847 - Flags: feedback+
Comment on attachment 8599848 [details] [diff] [review] auto-lte-wcdma.gaia.patch Review of attachment 8599848 [details] [diff] [review]: ----------------------------------------------------------------- The patch is looking good to me, thanks. However, there is a new string regarding certificate added and I believe it should not be included in this patch. ::: apps/settings/locales/settings.en-US.properties @@ +124,4 @@ > enterCertificateNickname=Enter certificate nick name > nickname=Nick name > enter-certificate-name-msg=You can change the nick name or keep the default name. > +enterCertificatePassowrd=Enter certificate password Is this intentional?
Attachment #8599848 - Flags: feedback?(arthur.chen) → feedback+
Comment on attachment 8599848 [details] [diff] [review] auto-lte-wcdma.gaia.patch I believe Arthur's feedback is enough.
Attachment #8599848 - Flags: feedback?(htsai)
No Arthur, you're right, it's a leak from another patch I was trying :)
Edgar, Hsin-Yi, where should I add test case for the Gecko part of this ?
Flags: needinfo?(htsai)
Flags: needinfo?(echen)
Arthur, which tests should I add for the Gaia part of this?
Flags: needinfo?(arthur.chen)
(In reply to Alexandre LISSY :gerard-majax from comment #9) > Edgar, Hsin-Yi, where should I add test case for the Gecko part of this ? Hi Alexandre, this is the test case you'd like to enhance. https://dxr.mozilla.org/mozilla-central/source/dom/mobileconnection/tests/marionette/test_mobile_preferred_network_type.js?from=test_mobile_preferred_network_type.js&case=true#26 Thank you!
Flags: needinfo?(htsai)
See Hsin-Yi's feedback in comment #11. Thank you.
Flags: needinfo?(echen)
FYI I cannot trigger any try request for now because of bug 1163609. This has been running fine on both my Z3 Compact devices for several days now.
Attachment #8599847 - Attachment is obsolete: true
Attachment #8604115 - Flags: review?(htsai)
Attachment #8604123 - Flags: review?(arthur.chen)
Attachment #8599848 - Attachment is obsolete: true
Flags: needinfo?(arthur.chen)
Comment on attachment 8604123 [details] [review] [gaia] lissyx:bug1160123 > mozilla-b2g:master r=me with the comment addressed, thanks!
Attachment #8604123 - Flags: review?(arthur.chen) → review+
Comment on attachment 8604115 [details] [diff] [review] Add support for LTE/WCDMA only network selection Review of attachment 8604115 [details] [diff] [review]: ----------------------------------------------------------------- Thank you.
Attachment #8604115 - Flags: review?(htsai) → review+
Keywords: checkin-needed
Keywords: checkin-needed
Autolander could not locate a review from a user within the suggested reviewer list. Either the patch author or the reviewer should be in the suggested reviewer list.
Moving to the settings component to get this landed. Might need to add checkin-needed afer this lands for the gecko part as well.
Component: RIL → Gaia::Settings
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Now checkin-needed for Gecko part
Assignee: nobody → lissyx+mozillians
Status: RESOLVED → REOPENED
Component: Gaia::Settings → RIL
Keywords: checkin-needed
Resolution: FIXED → ---
Keywords: checkin-needed
Autolander could not locate a review from a user within the suggested reviewer list. Either the patch author or the reviewer should be in the suggested reviewer list.
Comment on attachment 8604123 [details] [review] [gaia] lissyx:bug1160123 > mozilla-b2g:master I am going to obsolete this for the time being to keep checkin-needed for the gecko patch. (We can un-obsolete it afterwards most likely)
Attachment #8604123 - Attachment is obsolete: true
Adding checkin-needed for the gecko patch.
Keywords: checkin-needed
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S12 (15may)
Whiteboard: [systemsfe]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: