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:

committed by
Aleksander Morgado

parent
6f2c440b7b
commit
5eab715bb6
@@ -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
|
/* We're returning a MASK of technologies found; so we can include more
|
||||||
* than one technology in the result */
|
* than one technology in the result */
|
||||||
if (strcasestr (string, "LTE"))
|
if (strcasestr (string, "LTE") || strcasestr (string, "4G"))
|
||||||
act |= MM_MODEM_ACCESS_TECHNOLOGY_LTE;
|
act |= MM_MODEM_ACCESS_TECHNOLOGY_LTE;
|
||||||
|
|
||||||
if (strcasestr (string, "HSPA+"))
|
if (strcasestr (string, "HSPA+"))
|
||||||
|
Reference in New Issue
Block a user