modem-helpers: recognize "3G" as UMTS access technology

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>'
This commit is contained in:
Ben Chan
2014-01-28 23:44:01 -08:00
committed by Dan Williams
parent c5cfa2cad1
commit c28ff0d547

View File

@@ -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"))