aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-10 16:35:11 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-10 16:35:11 +0200
commit255ac4364dac4260e20ee7cbbe2d4b97cc8cc350 (patch)
treee52b464a0ab63213783a5246ca3af2a18192d9f4 /src
parentc668972d9e568e7ea7902591c0b457498979fe42 (diff)
bearer-qmi: fix authentication logic
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer-qmi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index 1a2bd564..10b038ae 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -703,8 +703,10 @@ connect (MMBearer *self,
if (auth == MM_BEARER_ALLOWED_AUTH_UNKNOWN) {
mm_dbg ("Using default (PAP) authentication method");
ctx->auth = QMI_WDS_AUTHENTICATION_PAP;
- } else if (ctx->auth & (MM_BEARER_ALLOWED_AUTH_PAP | MM_BEARER_ALLOWED_AUTH_CHAP)) {
- /* Only PAP and/or CHAP are supported */
+ } else if (auth & (MM_BEARER_ALLOWED_AUTH_PAP |
+ MM_BEARER_ALLOWED_AUTH_CHAP |
+ MM_BEARER_ALLOWED_AUTH_NONE)) {
+ /* Only PAP and/or CHAP or NONE are supported */
ctx->auth = mm_bearer_allowed_auth_to_qmi_authentication (auth);
} else {
gchar *str;