From a5aa268747ce6d7180fb62c46ecbac5824f46b3b Mon Sep 17 00:00:00 2001 From: Giacinto Cifelli Date: Sat, 6 Oct 2018 07:45:19 +0200 Subject: [PATCH] file-provision: support for auth type of NONE --- plugins/file-provision.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/file-provision.c b/plugins/file-provision.c index d4846a65..37fac0e3 100644 --- a/plugins/file-provision.c +++ b/plugins/file-provision.c @@ -93,7 +93,9 @@ static int config_file_provision_get_settings(const char *mcc, if (value != NULL) (*settings)[0].password = value; - (*settings)[0].auth_method = OFONO_GPRS_AUTH_METHOD_CHAP; + /* select default authentication method */ + (*settings)[0].auth_method = OFONO_GPRS_AUTH_METHOD_NONE; + value = g_key_file_get_string(key_file, setting_group, "internet.AuthenticationMethod", NULL); @@ -104,7 +106,7 @@ static int config_file_provision_get_settings(const char *mcc, else if (g_strcmp0(value, "pap") == 0) (*settings)[0].auth_method = OFONO_GPRS_AUTH_METHOD_PAP; - else + else if (g_strcmp0(value, "none") != 0) DBG("Unknown auth method: %s", value); g_free(value);