Hi Martin,

On 05/02/2016 09:42 AM, Martin Chaplet wrote:
Let modem detect part overload default SIM driver by using an additional
property named "Simdriver".
It allows QMI modems with buggy UIM interface to be supported by forcing
legacy driver.
---
  plugins/gobi.c | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plugins/gobi.c b/plugins/gobi.c
index 4daa459..09c9d95 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -413,12 +413,16 @@ error:
  static void gobi_pre_sim(struct ofono_modem *modem)
  {
        struct gobi_data *data = ofono_modem_get_data(modem);
+       const char * simdriver;

        DBG("%p", modem);

        ofono_devinfo_create(modem, 0, "qmimodem", data->device);

-       if (data->features & GOBI_UIM)
+       simdriver = ofono_modem_get_string(modem,"Simdriver");

Can we name this ForceSimLegacy and make it a boolean?

+       if(simdriver != NULL)
+               ofono_sim_create(modem, 0, simdriver, data->device);
+       else if (data->features & GOBI_UIM)
                ofono_sim_create(modem, 0, "qmimodem", data->device);
        else if (data->features & GOBI_DMS)
                ofono_sim_create(modem, 0, "qmimodem-legacy", data->device);


Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to