aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmm-glib/mm-common-helpers.c10
-rw-r--r--src/mm-modem-helpers-qmi.c2
2 files changed, 1 insertions, 11 deletions
diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c
index f32a83a0..9cfb842e 100644
--- a/libmm-glib/mm-common-helpers.c
+++ b/libmm-glib/mm-common-helpers.c
@@ -462,16 +462,6 @@ mm_common_get_allowed_auth_from_string (const gchar *str,
allowed_auth = MM_BEARER_ALLOWED_AUTH_UNKNOWN;
}
- /* 'none' is a special value which, if given, must be given alone */
- if (allowed_auth & MM_BEARER_ALLOWED_AUTH_NONE &&
- allowed_auth != MM_BEARER_ALLOWED_AUTH_NONE) {
- g_set_error (error,
- MM_CORE_ERROR,
- MM_CORE_ERROR_INVALID_ARGS,
- "Allowed auth 'none' cannot be given along with other values");
- allowed_auth = MM_BEARER_ALLOWED_AUTH_UNKNOWN;
- }
-
g_type_class_unref (flags_class);
g_strfreev (strings);
return allowed_auth;
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c
index 84935877..0178fe93 100644
--- a/src/mm-modem-helpers-qmi.c
+++ b/src/mm-modem-helpers-qmi.c
@@ -887,7 +887,7 @@ mm_bearer_allowed_auth_to_qmi_authentication (MMBearerAllowedAuth auth)
{
QmiWdsAuthentication out;
- out = 0;
+ out = QMI_WDS_AUTHENTICATION_NONE;
if (auth & MM_BEARER_ALLOWED_AUTH_PAP)
out |= QMI_WDS_AUTHENTICATION_PAP;
if (auth & MM_BEARER_ALLOWED_AUTH_CHAP)