changed default authentication algorithm to CHAP
CHAP is almost universal nowadays, and so it is a better default than PAP Not changed for uBlox, that prefers an error if not specified, and for Huawei, which uses NONE with user/pwd and has 2 CHAP choices
This commit is contained in:
@@ -391,17 +391,17 @@ connect_3gpp_context_step (GTask *task)
|
||||
if (!user && !passwd)
|
||||
command = g_strdup_printf ("AT^NDISDUP=1,1,\"%s\"",
|
||||
apn == NULL ? "" : apn);
|
||||
else if (encoded_auth == MM_BEARER_HUAWEI_AUTH_NONE)
|
||||
command = g_strdup_printf ("AT^NDISDUP=1,1,\"%s\",\"%s\",\"%s\"",
|
||||
apn == NULL ? "" : apn,
|
||||
user == NULL ? "" : user,
|
||||
passwd == NULL ? "" : passwd);
|
||||
else
|
||||
else {
|
||||
if (encoded_auth == MM_BEARER_HUAWEI_AUTH_NONE) {
|
||||
encoded_auth = MM_BEARER_HUAWEI_AUTH_CHAP;
|
||||
mm_obj_dbg (self, "using default (CHAP) authentication method");
|
||||
}
|
||||
command = g_strdup_printf ("AT^NDISDUP=1,1,\"%s\",\"%s\",\"%s\",%d",
|
||||
apn == NULL ? "" : apn,
|
||||
user == NULL ? "" : user,
|
||||
passwd == NULL ? "" : passwd,
|
||||
encoded_auth);
|
||||
}
|
||||
|
||||
mm_base_modem_at_command_full (ctx->modem,
|
||||
ctx->primary,
|
||||
|
||||
Reference in New Issue
Block a user