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

Dan Williams dcbw at redhat.com
Wed Jan 29 08:15:36 PST 2014


On Tue, 2014-01-28 at 23:44 -0800, Ben Chan wrote:
> Some modems (e.g. ZTE MF190) report UMTS access technology as "3G":

Pushed, thanks.

Dan

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




More information about the ModemManager-devel mailing list