When booting in flight mode, "No SIM" is shown
Bug #1355657 reported by
Martti Piirainen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ofono (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Test steps in mako HW, image 185:
* Enable flight mode (via system settings or via network indicator)
* Reboot
Expected result: The cellular radio is offline, but the SIM card is accessible via oFono APIs
Actual result: The cellular radio is offline, and the SIM is shown as not present (in network indicator UI, or in oFono API property SimManager.Present)
The practical impact of this bug is rather low: Enabling the cellular radio (exiting the flight mode via UI, or setting oFono to 'Online' via direct API calls) also enables the SIM presence and SIM-related APIs.
Changed in ofono (Ubuntu): | |
status: | New → Fix Committed |
To post a comment you must log in.
Even with flight mode enabled (= cellular radio power is OFF), the RIL API delivers a proper state "SIM is present and usable" - but oFono does not ask for that information, and thus does not do any internal SIM-related initialization.
oFono's RIL plugin (ofono/ plugins/ ril.c) only calls function send_get_ sim_status( ) when the radio is powered on. As a quick fix, I added an unconditional send_get_ sim_status( ) function call to the end of function ril_connected(). With that fix, the SIM presence and other SIM APIs are working fine, and the network indicator UI shows "Offline" instead of "No SIM". This fix needs to be evaluated a bit more.
Note that this behaviour might be somewhat modem-specific (some modems might actually power the SIM card reader off when the cellular radio is powered off).