E1750 Reloaded - QMI - STATIC - DHCP - IPv4

Aleksander Morgado aleksander at aleksander.es
Tue Aug 12 00:28:56 PDT 2014


On 12/08/14 08:23, poma wrote:
>>> >> ---
>>> >>  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..b632b69 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 -q -c2 8.8.8.8")) {
>>> >> +        mm_bearer_ip_config_set_method (config, MM_BEARER_IP_METHOD_DHCP);
>>> >> +        mm_info ("STATIC ain't workin, let's go DHCP");
>>> >> +    } else {
>>> >> +        mm_info ("we're staying STATIC, but here we're already connected so someone should check does STATIC actually works");
>>> >> +    }
>>> >> +
>>> >>      return config;
>> > 
>> > :) No, that won't work. Not every APN gives you access to the
>> > Internet, some users may use APNs that give them access to private
>> > networks managed by the operators. I've worked with such a case in the
>> > past.
> Oh yes it does, for the config here.
> So you cover that case, but not others? :)
> 

We try to cover every case the best way we can. Pinging google's DNS
just to check whether we should fallback to DHCP is just a workaround.
As I said, I would very much prefer to just fallback to DHCP by default
than adding the ping :) But first I'd rather see whether this issue is
Huawei-only or not. Mind you, this is the only issue blocking a new
stable release right now; we're working on it.

>> > I'd rather just fall back to DHCP for IPv4 instead of adding that ping
>> > (Huawei-only?). I tried to test the issue with my Huawei QMI modem but
>> > unfortunately it seems to be broken (doesn't detect the SIM properly);
>> > Dan also said that he would check that with his modems.
> El zapatero siempre tiene los peores zapatos.
> Pero al menos sabemos que eres un zapatero. :)
> 
> Besides rather than two months later, it should be checked before the patch is applied.

Well, I wouldn't have thought that switching to static IPv4 config would
have been a problem. We did test with several QMI modems before applying
the patch, just not with a Huawei one it seems. Plus, we still don't
know if this happens to all Huawei devices or just to the one you use.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list