diff options
author | Giacinto Cifelli <gciofono@gmail.com> | 2020-07-27 12:27:26 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-07-27 11:34:16 +0000 |
commit | 4f1da8797213fb79856a5e8e1c6e6dca7236c2e0 (patch) | |
tree | b3d4bdbbfc3b5215f43f72267655cac2162a45b3 | |
parent | 07ac85e2f70706e377c2019b07ce29958c70668c (diff) |
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.
-rw-r--r-- | plugins/cinterion/mm-broadband-bearer-cinterion.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |