[PATCH] Handle "IPV4" pdp type response

Aleksander Morgado aleksander at aleksander.es
Wed Oct 29 15:16:08 PDT 2014


On 29/10/14 22:08, Oskar Enoksson wrote:
> 
> My modem (Samsung GI B3740) responded "IPV4" to "CGDCONT=?". This was
> not handled in mm-modem-helpers.c. The obvious fix was to return
> MM_BEARER_IP_FAMILY_IPV4.
> ---

Pushed to git master and mm-1-4, but I had to manually rewrite the patch.

For some reason your emails get base64 encoded and a simple "git am
email.txt" doesn't work... :/


>  src/mm-modem-helpers.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
> index e4967d7..64b4928 100644
> --- a/src/mm-modem-helpers.c
> +++ b/src/mm-modem-helpers.c
> @@ -1899,6 +1899,8 @@ mm_3gpp_get_ip_family_from_pdp_type (const gchar
> *pdp_type)
>  {
>      if (g_str_equal (pdp_type, "IP"))
>          return MM_BEARER_IP_FAMILY_IPV4;
> +    if (g_str_equal (pdp_type, "IPV4"))
> +        return MM_BEARER_IP_FAMILY_IPV4;
>      if (g_str_equal (pdp_type, "IPV6"))
>          return MM_BEARER_IP_FAMILY_IPV6;
>      if (g_str_equal (pdp_type, "IPV4V6"))
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list