Hi Nandini,
On Wed, Jan 16, 2019 at 7:45 AM Nandini Rebello
<nandini.rebello(a)intel.com> wrote:
Adding support to clear cached pins when modem is powered off.
but then this whole feature is useless because most of the modems
disappear from the bus when crashing and restarting,
and when they re-enumerate they are automatically Powered=false
how do you go round this for your template modem?
---
src/modem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/modem.c b/src/modem.c
index bc46275..baacdc8 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1130,6 +1130,9 @@ static DBusMessage *modem_set_property(DBusConnection *conn,
if (modem->lockdown)
return __ofono_error_access_denied(msg);
+ if (!powered)
+ ofono_sim_clear_cached_pins(modem->sim);
+
err = set_powered(modem, powered);
if (err < 0) {
if (err != -EINPROGRESS)
--
2.7.4
_______________________________________________
ofono mailing list
ofono(a)ofono.org
https://lists.ofono.org/mailman/listinfo/ofono
Regards,
Giacinto