Switch from atmodem to gemaltomodem for the lte atom, in order to benefit from the correct syntax for the AT commands. The current models included in the Gemalto plugin only use one type of authentication syntax, despite the atom supporting the syntax for all Gemalto modules. Therefore for now the variable GemaltoAuthType is set to a fixed value, independent on the model. --- plugins/gemalto.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/plugins/gemalto.c b/plugins/gemalto.c index 5d3c77a9..3ca9f2d6 100644 --- a/plugins/gemalto.c +++ b/plugins/gemalto.c @@ -63,6 +63,13 @@ static const char *none_prefix[] = { NULL }; static const char *sctm_prefix[] = { "^SCTM:", NULL }; static const char *sbv_prefix[] = { "^SBV:", NULL }; +enum auth_option { + GEMALTO_AUTH_DEFAULTS = 0x00, + GEMALTO_AUTH_USE_SGAUTH = 0x01, + GEMALTO_AUTH_ORDER_PWD_USR = 0x02, + GEMALTO_AUTH_ALW_ALL_PARAMS = 0x04, +}; + struct gemalto_hardware_monitor { DBusMessage *msg; int32_t temperature; @@ -609,9 +616,12 @@ static void gemalto_post_sim(struct ofono_modem *modem) ofono_call_meter_create(modem, 0, "atmodem", data->app); ofono_call_barring_create(modem, 0, "atmodem", data->app); - if (!g_strcmp0(model, GEMALTO_MODEL_ALS3_PLS8x)) - ofono_lte_create(modem, OFONO_VENDOR_CINTERION, - "atmodem", data->app); + if (!g_strcmp0(model, GEMALTO_MODEL_ALS3_PLS8x)) { + ofono_modem_set_integer(modem, "GemaltoAuthType", + GEMALTO_AUTH_USE_SGAUTH | + GEMALTO_AUTH_ORDER_PWD_USR); + ofono_lte_create(modem, 0, "gemaltomodem", data->app); + } } static void gemalto_post_online(struct ofono_modem *modem) -- 2.17.1 _______________________________________________ ofono mailing list ofono@ofono.org https://lists.ofono.org/mailman/listinfo/ofono