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.
This commit is contained in:
committed by
Aleksander Morgado
parent
07ac85e2f7
commit
4f1da87972
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user