Closed Bug 942067 Opened 12 years ago Closed 12 years ago

B2G RIL: apn type handled incorrectly in updateApnSettings(...) [v1.2]

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED WONTFIX
blocking-b2g -

People

(Reporter: jessica, Assigned: jessica)

Details

Attachments

(2 files)

In Bug 935537, the cause of sending two consecutive radio power off requests to modem was because RIL didn't find out that there was an active data connection, so it set radio power off directly [1] (1st radio power off); later on, RIL receives an unsolicited data call list notifying that the active data connection was disconnected, from the logic in [2] we set radio power off again (2nd radio power off). So the problem here is why RIL didn't find out about the activate data connection. The attached log (line 4076) with extra loggings shows that getDataCallStateByType(...) was called with type: "default,supl", which led us to think of a wrong apn type. Finally, we found the bug in apn settings type handling [3]. Bug 854626 (Part 5-1) has fixed this part in mozilla-central, but we still has this issue in v1.2 [1] http://mxr.mozilla.org/mozilla-aurora/source/dom/system/gonk/RadioInterfaceLayer.js#1523 [2] http://mxr.mozilla.org/mozilla-aurora/source/dom/system/gonk/RadioInterfaceLayer.js#1966 [3] http://mxr.mozilla.org/mozilla-aurora/source/dom/system/gonk/RadioInterfaceLayer.js#1577
Jessica, I am wondering if you could take this bug? Thanks!
Flags: needinfo?(jjong)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1) > Jessica, I am wondering if you could take this bug? Thanks! Oh yeah, I am running try on the patch: :) https://tbpl.mozilla.org/?tree=Try&rev=2106dffbe91a
Assignee: nobody → jjong
Flags: needinfo?(jjong)
Attached patch patch, v1.Splinter Review
Summary: B2G RIL: handling apn type incorrectly in updateApnSettings(...) [v1.2] → B2G RIL: apn type handled incorrectly in updateApnSettings(...) [v1.2]
Comment on attachment 8337648 [details] [diff] [review] patch, v1. for mozilla-b2g26_v1_2.
Attachment #8337648 - Flags: review?(htsai)
This is indeed a mistake that needs to be fixed. Otherwise, we will face problems when mms apn and internet apn have the same apn, user name and password. koi?
blocking-b2g: --- → koi?
Comment on attachment 8337648 [details] [diff] [review] patch, v1. Review of attachment 8337648 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for this catch!
Attachment #8337648 - Flags: review?(htsai) → review+
Please provide better STRs and user impact here.
Flags: needinfo?(jjong)
(In reply to Preeti Raghunath(:Preeti) from comment #7) > Please provide better STRs and user impact here. Sorry for not being clearer. This bug affects only carriers that have it's first apn with a single apn type and a second apn that can shared a former apn and that has more than one apn type. Like movistar's apn: {"carrier":"Movistar MMS","apn":"telefonica.es","user":"telefonica","password":"telefonica","mmsc":"http://mms.movistar.com","mmsproxy":"10.138.255.5","mmsport":"8080","type":["mms"]}, {"voicemail":"123","enableStrict7BitEncodingForSms":true,"operatorSizeLimitation":512000,"type":["operatorvariant"]}, {"carrier":"Movistar","apn":"telefonica.es","user":"telefonica","password":"telefonica","proxy":"10.138.255.133","port":"8080","type":["default","supl"]} The user impact is not obvious, we found this bug by tracing Bug 935537 and the patch in Bug 935537 already solves the case. Another case might be when data connection is enabled and user edits the default APN. The original data connection is not really deactivated, and another data connection will be established with the new APN. However, user will not notice this.
Flags: needinfo?(jjong)
Thanks Jessica. Did we see this issue with the Moz RIL or the Com RIL? POVB?
Flags: needinfo?(jjong)
(In reply to Preeti Raghunath(:Preeti) from comment #9) > Thanks Jessica. > > Did we see this issue with the Moz RIL or the Com RIL? > > POVB? Preeti, we found this issue in Moz RIL, I am not sure about COM RIL as we don't have the source code. Maybe anshul can help answer this?
Flags: needinfo?(jjong) → needinfo?(anshulj)
So here's the apn json for Gaia: https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/apn.json Jessica - Is the situation you are describing in comment 8 present in this apn.json file? If it's present in the apn.json, then the situation you describe will affect those relevant carriers in any Gaia build. If it's not present, then this won't happen in any target Gaia build.
Flags: needinfo?(jjong)
Phil, could you please look at this issue from COM RIL's perspective?
Flags: needinfo?(anshulj) → needinfo?(pgravel)
Does not affect commercial ril.
Flags: needinfo?(pgravel)
(In reply to Jason Smith [:jsmith] from comment #11) > So here's the apn json for Gaia: > > https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/apn.json > > Jessica - Is the situation you are describing in comment 8 present in this > apn.json file? > > If it's present in the apn.json, then the situation you describe will affect > those relevant carriers in any Gaia build. If it's not present, then this > won't happen in any target Gaia build. Yes, it is the case of Telefonica ES (214-07). Note that the issue is solved in master branch, so it affects those relevant carriers using 1.2 with any Gaia build.
Flags: needinfo?(jjong)
(In reply to Jessica Jong [:jjong] [:jessica] from comment #14) > (In reply to Jason Smith [:jsmith] from comment #11) > > So here's the apn json for Gaia: > > > > https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/apn.json > > > > Jessica - Is the situation you are describing in comment 8 present in this > > apn.json file? > > > > If it's present in the apn.json, then the situation you describe will affect > > those relevant carriers in any Gaia build. If it's not present, then this > > won't happen in any target Gaia build. > > Yes, it is the case of Telefonica ES (214-07). > Note that the issue is solved in master branch, so it affects those relevant > carriers using 1.2 with any Gaia build. Oh, according to Comment 13, it does not affect commercial ril, so it affects those relevant carriers using 1.2 + MOZ RIL + any Gaia build.
not a blocker as this is not impacting the comRIL.
blocking-b2g: koi? → -
Closed per comment 16.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: