Closed
Bug 833277
Opened 11 years ago
Closed 11 years ago
B2G CDMA Tell if we are on CDMA network
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: kk1fff, Assigned: kk1fff)
References
Details
Attachments
(1 file, 2 obsolete files)
9.30 KB,
patch
|
Details | Diff | Splinter Review |
We need to tell if we are on CDMA network. We can get current radio technology from UNSOLICITED_RESPONSE_RADIO_STATE_CHANGED handler, or use REQUEST_VOICE_RADIO_TECH that is introduced in RIL v7.
Assignee | ||
Comment 1•11 years ago
|
||
Blocks: 830264
Assignee | ||
Updated•11 years ago
|
Attachment #705245 -
Flags: review?(vyang)
Comment 2•11 years ago
|
||
Comment on attachment 705245 [details] [diff] [review] Patch: Tell if we are on CDMA network Review of attachment 705245 [details] [diff] [review]: ----------------------------------------------------------------- r=me with some nits fixed :) ::: dom/system/gonk/ril_consts.js @@ +2309,5 @@ > "evdob", > "ehrpd", > "lte", > "hspa+", > + "gsm" You'll also need a NETWORK_CREG_TECH_GSM. ::: dom/system/gonk/ril_worker.js @@ +3268,5 @@ > + radioTechString == 'hsupa' || > + radioTechString == 'hspa' || > + radioTechString == 'lte' || > + radioTechString == 'hspa+' || > + radioTechString == 'gsm') { Could you compare radioTech with NETWORK_CREG_TECH_* instead? @@ +4951,5 @@ > this.acknowledgeIncomingGsmSmsWithPDU(success, responsePduLen, options); > }; > +RIL[REQUEST_VOICE_RADIO_TECH] = function REQUEST_VOICE_RADIO_TECH(length, options) { > + let radioTech = Buf.readUint32List(); > + if (radioTech && radioTech.length > 0) { Please check rilRequestError first. @@ +4954,5 @@ > + let radioTech = Buf.readUint32List(); > + if (radioTech && radioTech.length > 0) { > + this._processRadioTech(radioTech[0]); > + } else { > + debug("Error: REQUEST_VOICE_RADIO_TECH has no tech!"); // Should not happen. It seems it's unnecessary. Just remove it.
Assignee | ||
Comment 3•11 years ago
|
||
Fix according to previous review and use switch/case to identify GSM family.
Attachment #705245 -
Attachment is obsolete: true
Attachment #705245 -
Flags: review?(vyang)
Attachment #705805 -
Flags: review?(vyang)
Updated•11 years ago
|
Attachment #705805 -
Flags: review?(vyang) → review+
Comment 4•11 years ago
|
||
Comment on attachment 705805 [details] [diff] [review] Patch: Tell if we are on CDMA network v2 Review of attachment 705805 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +5012,5 @@ > this.acknowledgeIncomingGsmSmsWithPDU(success, responsePduLen, options); > }; > +RIL[REQUEST_VOICE_RADIO_TECH] = function REQUEST_VOICE_RADIO_TECH(length, options) { > + if (options.rilRequestError) { > + return; Sorry, I should have commented in previous review, but could you add a debug message here? If somehow we have to fetch voice radio tech and it fails, then the following steps to fetch necessary info will never proceed. Having an debug message here gives a handy hint for development phase.
Assignee | ||
Comment 5•11 years ago
|
||
Adding comment according to comment 4.
Attachment #705805 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Patrick Wang [:kk1fff] from comment #5) > Adding comment according to comment 4. ^ sorry... adding debug message for failure to get voice radio tech.
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/418c2f404d74
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/418c2f404d74
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•