openwrt/package/network/utils/comgt/files
Rozhuk Ivan ba7ddae9a9 comgt-ncm: do not attempt to connect if the control device is invalid
After a hardware reconnect, the control device might be unavailable and
attempting to interact with it will lead to hanging gcom calls, leaving
the protocol setup in an unrecoverable state.

Change the protocol handler to bail out early and notify netifd if the
control device is not defined or if the underlying device node does not
exist.

Also ensure that the "disconnect", "connect" and "setmode" commands are
actually defined before trying to invoke them.

Finally attempt to re-query the device manufacturer if it is unset in
the interface state in order to prevent UNUPPORTED_MODEM errors after
a modem hardware reconnect.

Signed-off-by: Rozhuk Ivan <rozhuk.im@gmail.com>
[reword subject and commit message]
Ref: https://github.com/openwrt/openwrt/pull/2352
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-06-17 23:14:46 +02:00
..
3g.chat comgt: add support for defining dial number in config file 2014-06-02 12:45:09 +00:00
3g.sh comgt: add delay option for 3g proto 2019-07-03 07:45:00 +02:00
3g.usb comgt: fix hotplug event handling 2020-03-16 21:02:33 +01:00
directip-stop.gcom comgt: add directip proto 2014-09-11 12:26:31 +00:00
directip.gcom comgt: fix misplaced : in directip setup script 2014-09-24 08:07:40 +00:00
directip.sh treewide: fix shellscript syntax errors/typos 2017-09-13 08:07:54 +02:00
evdo.chat packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
getcardinfo.gcom comgt-ncm: Add support for specifying profile index 2016-12-14 10:37:01 +01:00
getcarrier.gcom packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
getcnum.gcom packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
getimsi.gcom packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
getstrength.gcom packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
ncm.json DWR-512: adding wwan support for the dwr-512 3G modem 2017-05-25 19:01:08 +02:00
ncm.sh comgt-ncm: do not attempt to connect if the control device is invalid 2020-06-17 23:14:46 +02:00
runcommand.gcom comgt: increase timeout on runcommands 2018-08-29 08:34:10 +02:00
setmode.gcom packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
setpin.gcom comgt-3g: enable modem before to setpin 2017-05-18 07:07:00 +02:00