Openwrt/package/network/utils
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
..
adb-enablemodem
arptables
comgt comgt-ncm: do not attempt to connect if the control device is invalid 2020-06-17 23:14:46 +02:00
curl
dante
ebtables
ethtool
iftop
iperf
iperf3
iproute2 iproute2: update to 5.7.0 2020-06-13 21:36:27 +02:00
ipset
iptables
iw mac80211: Update to version 5.7-rc3-1 2020-05-21 14:39:34 +02:00
iwcap
iwinfo iwinfo: update to version 2020-06-03 2020-06-03 16:49:28 +02:00
layerscape/restool
linux-atm
maccalc
nftables
owipcalc
resolveip
rssileds
tcpdump
umbim
uqmi
wireguard-tools wireguard-tools: bump to 1.0.20200513 2020-05-20 08:14:00 +02:00
wireless-tools
wpan-tools
wwan wwan: replace backticks by $(...) 2020-05-13 19:01:23 +02:00