nemomobile-packages/ofono — pull request #50 by jpoutiai (2013-09-03 09:27:01+00:00)
Title: updating pin lock states after ofono looses them

The idea is that we update the ofono sim->locked_pins table after receiving response to RIL_REQUEST_GET_SIM_STATUS which made e.g. after receiving RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED. Currently there is no way afaik to update locked_pins table other than as a part of query_passwd_state response which then will result in "PinRequired" dbus signal to be sent related to pin in question which is not always what we desire. i.e. after three incorrect attempts puk is asked but after correct puk entered we would not like "PinRequired" pin signal to be sent. I have gone around this problem by introducing a new method visible to drivers to src/sim.c and include/sim.h through which the driver can set the table up-to-date.