Closed Bug 897834 Opened 11 years ago Closed 11 years ago

B2G Emulator: Refactor the fall-through flow for RIL_REQUEST in reference-ril

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(1 file, 1 obsolete file)

The fall-through flow for RIL_REQUEST [1] in reference-ril has some potential problems. * It is easy to break the flow by changing the sequence and finally run into an unexpected case block. * Can not base on this flow to have the same check for GSM specific requests. Maybe we should have a separated switch-case for CDMA/GSM specific request set. It seems more clear and more easily to maintain. Thanks [1] https://github.com/mozilla-b2g/platform_hardware_ril/blob/ec665107b24b2002e45d9de5236536130d7b1827/reference-ril/reference-ril.c#L2434
Attachment #780889 - Flags: review?(vyang)
Comment on attachment 782408 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/platform_hardware_ril/pull/21#issuecomment-21698812 oops! Was just browsing accidentally hit the attach button...
Attachment #782408 - Attachment is obsolete: true
Comment on attachment 780889 [details] hardware/ril pull request #21 nit: TECH_BIT(sMdmInfo) & (MDM_CDMA | MDM_EVDO). Will merge after this nit addressed.
Attachment #780889 - Flags: review?(vyang) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: