summaryrefslogtreecommitdiff
path: root/plugins/mbpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mbpi.c')
-rw-r--r--plugins/mbpi.c4
1 files changed, 4 insertions, 0 deletions
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;