From 4f1da8797213fb79856a5e8e1c6e6dca7236c2e0 Mon Sep 17 00:00:00 2001 From: Giacinto Cifelli Date: Mon, 27 Jul 2020 12:27:26 +0200 Subject: [PATCH] cinterion: IMT family SGAUTH some ITM family modems require full parameters: AT^SGAUTH=cid,type,user,pwd even when type is AUTH_NONE. Fortunately, all modules of the IMT family tolerate this syntax, so it can be adopted for the entire family. --- plugins/cinterion/mm-broadband-bearer-cinterion.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/cinterion/mm-broadband-bearer-cinterion.c b/plugins/cinterion/mm-broadband-bearer-cinterion.c index fa4c3ef6..bc9cf224 100644 --- a/plugins/cinterion/mm-broadband-bearer-cinterion.c +++ b/plugins/cinterion/mm-broadband-bearer-cinterion.c @@ -228,6 +228,8 @@ build_auth_string (MMBroadbandBearerCinterion *self, if (encoded_auth == BEARER_CINTERION_AUTH_NONE) { if (has_user || has_passwd) mm_obj_warn (self, "APN user/password given but 'none' authentication requested"); + if (modem_family == MM_CINTERION_MODEM_FAMILY_IMT) + return g_strdup_printf ("^SGAUTH=%u,%d,\"\",\"\"", cid, encoded_auth); return g_strdup_printf ("^SGAUTH=%u,%d", cid, encoded_auth); }