From cc79162470eab45523f0af2df98bcfe13ba53348 Mon Sep 17 00:00:00 2001 From: Giacinto Cifelli Date: Sat, 6 Oct 2018 07:45:18 +0200 Subject: [PATCH] gprs: support for NONE auth type --- src/gprs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gprs.c b/src/gprs.c index 79fafdbc..9f87cc98 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -261,6 +261,8 @@ static const char *gprs_auth_method_to_string(enum ofono_gprs_auth_method auth) return "chap"; case OFONO_GPRS_AUTH_METHOD_PAP: return "pap"; + case OFONO_GPRS_AUTH_METHOD_NONE: + return "none"; }; return NULL; @@ -275,6 +277,9 @@ static gboolean gprs_auth_method_from_string(const char *str, } else if (g_str_equal(str, "pap")) { *auth = OFONO_GPRS_AUTH_METHOD_PAP; return TRUE; + } else if (g_str_equal(str, "none")) { + *auth = OFONO_GPRS_AUTH_METHOD_NONE; + return TRUE; } return FALSE;