This PR makes ofono signal ordering more sensible:

https://github.com/rilmodem/ofono/pull/129

Although this bug only happens for mako it is not impossible that it
might have appeared for krillin too, as both plugins worked in a similar
way.

For those interested, here is the event sequence that probably makes the
bug appear:

1.- ofono_sim_register() is called. It calls
ofono_modem_add_interface(), which calls g_idle_add() before notifying
of the new interface.

2.- __ofono_sim_recheck_pin() is called. PinRequired is signalled.

3.- Now trigger_interface_update(), the argument to g_idle_add() in
point 1, is called so SimManager interface is signalled.

4.- telepathy-ofono calls GetProps() but, surprise, no properties are
there. This is because the SIM atom has not been notified that there is
a SIM, so sim_get_properties() returns no reply.

5.- Present is finally signalled when ofono_sim_inserted_notify(TRUE) is
called from the *ril/mtk plugin*. This can happen before of after the
sequence described, as there is no coordination with rilmodem SIM
driver. When it happens as described the bug appears.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1376250

Title:
  i-network says "Unknown" or "No SIM" on N4 (mako), can't unlock the
  SIM

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-network/+bug/1376250/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to