From a0ddcaa7a485580f3bcb88cff819f002a30fb4d0 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Tue, 25 Mar 2014 00:18:34 -0700 Subject: bearer-mbim: update MTU in bearer IP config properties This patch modifies MMBearerMbim to update the MTU value in the bearer IPv4 and IPv6 config property when such information is available in the MBIM_CID_IP_CONFIGURATION response. --- src/mm-bearer-mbim.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index a15e80a3..83e363d3 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -342,6 +342,10 @@ ip_configuration_query_ready (MbimDevice *device, g_strfreev (strarr); } else mm_bearer_ip_config_set_method (ipv4_config, MM_BEARER_IP_METHOD_DHCP); + + /* MTU */ + if (ipv4configurationavailable & MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU) + mm_bearer_ip_config_set_mtu (ipv4_config, ipv4mtu); } else ipv4_config = NULL; @@ -391,6 +395,10 @@ ip_configuration_query_ready (MbimDevice *device, g_strfreev (strarr); } else mm_bearer_ip_config_set_method (ipv6_config, MM_BEARER_IP_METHOD_DHCP); + + /* MTU */ + if (ipv6configurationavailable & MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU) + mm_bearer_ip_config_set_mtu (ipv6_config, ipv6mtu); } else ipv6_config = NULL; -- cgit v1.2.3-70-g09d2