modem-helpers: recognize "4G" as LTE access technology

Some modems (e.g. ZTE MF 820D) report LTE access technology as "4G":
  +ZPAS: "4G","PS_ONLY"
This commit is contained in:
Marius B. Kotsbak
2012-09-01 02:04:19 +02:00
committed by Aleksander Morgado
parent 6f2c440b7b
commit 5eab715bb6

View File

@@ -1361,7 +1361,7 @@ mm_string_to_access_tech (const gchar *string)
/* We're returning a MASK of technologies found; so we can include more
* than one technology in the result */
if (strcasestr (string, "LTE"))
if (strcasestr (string, "LTE") || strcasestr (string, "4G"))
act |= MM_MODEM_ACCESS_TECHNOLOGY_LTE;
if (strcasestr (string, "HSPA+"))