[PATCH 3/3] bearer-mbim: update MTU in bearer IP config properties

Ben Chan benchan at chromium.org
Tue Mar 25 00:18:34 PDT 2014


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(+)

diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index e9e51a7..c514468 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;
 
-- 
1.9.1.423.g4596e3a



More information about the ModemManager-devel mailing list