E1750 Reloaded - QMI - STATIC - DHCP - IPv4

poma pomidorabelisima at gmail.com
Sun Aug 10 03:03:06 PDT 2014


...
> MM_BEARER_IP_METHOD selection mechanism with regard to the Google Public DNS ping result
> 
> ---
>  src/mm-bearer-qmi.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
> index c25b9f7..bafdfc6 100644
> --- a/src/mm-bearer-qmi.c
> +++ b/src/mm-bearer-qmi.c
> @@ -337,6 +337,13 @@ get_ipv4_config (QmiMessageWdsGetCurrentSettingsOutput *output, guint32 mtu)
>          mm_dbg ("       MTU: %d", mtu);
>      }
>  
> +    if (system("ping -W 10 -c 10 8.8.8.8")) {
> +        mm_bearer_ip_config_set_method (config, MM_BEARER_IP_METHOD_DHCP);
> +        system("echo STATIC ain't workin, let's go DHCP");
> +    } else {
> +        system("echo we're staying STATIC, but here we're already connected so someone else should check does STATIC actually works");
> +    }
> +
>      return config;
>  }
>  

Ping test only works directly, with
# /usr/sbin/ModemManager
But for some reason, not with
# systemctl start ModemManager.service

The show never stops. :)


poma




More information about the ModemManager-devel mailing list