"Fangxiaozhi (Franko)" <[email protected]> writes:
> This patch updates the NDISDUP check handle for Huawei modem.
> For Huawei devices, which expose the standard ECM port, at command "^DHCP?"
> is used to query the IP and DNS address for the connection,
> At command "^NDISSTATQRY?" is used to query the connection status(connected
> or disconnected).
> They have some different. The response of DHCP does not exactly indicate the
> right connection status in that time.
> So it is better to send NDISSTATQRY to check the connection status after
> NDISDUP connect/disconnect, but not DHCP.
But the "^NDISSTATQRY" command isn't implemented on all modems
implementing "^NDISDUP" and "^DHCP", is it? Shouldn't you fall back to
^DHCP in case ^NDISSTATQRY returns ERROR? Or is this command
implemented on all modems where we currently need to use AT commands? I
don't have any modem without QMI and/or MBIM, but none of the two QMI
modems I have support ^NDISSTATQRY:
ati
Manufacturer: huawei
Model: E367
Revision: 11.810.09.00.00
IMEI: 353613048805199
+GCAP: +CGSM,+DS,+ES
OK
at^ndisdup=?
^NDISDUP:(1-16),(0-1)
OK
at^dhcp?
+CME ERROR: no connection to phone
at^ndisstatqry?
ERROR
ati
Manufacturer: Huawei Technologies Co., Ltd.
Model: E392
Revision: 11.335.13.00.000
IMEI: 860999000023707
+GCAP: +CGSM
OK
at^ndisdup=?
^NDISDUP:(1-16),(1-16)
OK
at^dhcp?
+CME ERROR: no connection to phone
at^ndisstatqry?
ERROR
Bjørn
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list