[PATCH] modem-helpers: recognize "3G" as UMTS access technology
Ben Chan
benchan at chromium.org
Tue Jan 28 23:44:01 PST 2014
Some modems (e.g. ZTE MF190) report UMTS access technology as "3G":
--> 'AT+ZPAS?<CR>'
<-- '<CR><LF>+ZPAS: "3G","CS_PS"<CR><LF><CR><LF>OK<CR><LF>'
---
src/mm-modem-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index a295dc3..9eefb33 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -1777,7 +1777,7 @@ mm_string_to_access_tech (const gchar *string)
if (strcasestr (string, "HSDPA"))
act |= MM_MODEM_ACCESS_TECHNOLOGY_HSDPA;
- if (strcasestr (string, "UMTS"))
+ if (strcasestr (string, "UMTS") || strcasestr (string, "3G"))
act |= MM_MODEM_ACCESS_TECHNOLOGY_UMTS;
if (strcasestr (string, "EDGE"))
--
1.8.5.3
More information about the ModemManager-devel
mailing list