Here is another version of the patch using g_timeout_add. Compare to what is done in at_util_sim_state_query, I choose to wait only 20ms between attempts (2s in at_util_sim_state_query). On my modem, I manage to recover from temporary error after 7 to 10 tries (less than 2 seconds). Let me know if you prefer a bigger wait before retry.
Christophe Ronco (1): qmimodem: query_passwd_state can be retried drivers/qmimodem/sim.c | 95 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 14 deletions(-) -- 2.11.0 _______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
