From e69f525d6eacb74447b92e3116a6008f02150343 Mon Sep 17 00:00:00 2001 From: Sergei Golubtsov Date: Sun, 4 Sep 2022 10:16:58 +0200 Subject: mbpi: switch to auth NONE if other options cannot be used If a user name or user name together with a password for an AP are not provided the NONE auth method should be used --- plugins/mbpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mbpi.c b/plugins/mbpi.c index ae92c762..7af64d1d 100644 --- a/plugins/mbpi.c +++ b/plugins/mbpi.c @@ -395,6 +395,10 @@ static void gsm_end(GMarkupParseContext *context, const gchar *element_name, if (ap == NULL) return; + /* select authentication method NONE if others cannot be used */ + if (!ap->username || (!ap->username && !ap->password)) + ap->auth_method = OFONO_GPRS_AUTH_METHOD_NONE; + if (gsm->allow_duplicates == FALSE) { GSList *l; -- cgit v1.2.1