Hi Marcel,
> you can have a look on what it would take to store a) read SPN in the
> SIM atom and store it and b) let netreg atom use that value.
Simple solution for this would be something like:
During some SIM initialisation phase (at sim_ready()?), sim-atom
requests ofono_sim_read(SIM_EFSPN_FILEID).
For netreg (and gprs/provisioning) it would provide:
typedef void (*ofono_sim_spn_read_cb_t)(int ok, const char *spn,
void *userdata);
void ofono_sim_read_spn(struct ofono_sim *sim, ofono_sim_spn_read_cb_t cb,
void *userdata);
ofono_sim_read_spn would queue requests until SPN is received (and
immediately call callback if SPN is ready).
But this still would be asyncronous, which causes the problem in netreg
(and gprs/provisioning). Is there any way to delay netreg initialisation
until SPN is available (and are there other SIM files netreg reads)?
--Jukka
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono