E1750 Reloaded - QMI - STATIC - DHCP - IPv4

poma pomidorabelisima at gmail.com
Sun Aug 3 22:28:02 PDT 2014


On 03.08.2014 22:32, poma wrote:
> 
> "broadband-bearer-qmi: support IPv6 configuration and use static for IPv4"
> http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=ca0a567
> 
> MM_BEARER_IP_METHOD_STATIC definitely doesn't work.
> Despite the provided static IPv4 configuration given by the modem to configure the IP data interface, 'route' is stuck, and 'ping' also shows nothing.
> Dan, what is the actual reason for the switch from MM_BEARER_IP_METHOD_DHCP to MM_BEARER_IP_METHOD_STATIC?
> Is MM_BEARER_IP_METHOD_DHCP not working for someone?
> 

This is actually sufficient for a working config.

mm-bearer-qmi: QMI IPv4 - revert to working MM_BEARER_IP_METHOD_DHCP

---
 src/mm-bearer-qmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index c25b9f7..730334c 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -291,7 +291,7 @@ get_ipv4_config (QmiMessageWdsGetCurrentSettingsOutput *output, guint32 mtu)
     mm_dbg ("QMI IPv4 Settings:");
 
     config = mm_bearer_ip_config_new ();
-    mm_bearer_ip_config_set_method (config, MM_BEARER_IP_METHOD_STATIC);
+    mm_bearer_ip_config_set_method (config, MM_BEARER_IP_METHOD_DHCP);
 
     /* IPv4 address */
     qmi_inet4_ntop (addr, buf, sizeof (buf));
-- 
2.0.4


poma




More information about the ModemManager-devel mailing list