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;
 
-- 
2.30.2
_______________________________________________
ofono mailing list -- ofono@ofono.org
To unsubscribe send an email to ofono-le...@ofono.org

Reply via email to