modemmanager: flag as available and no_device when initializing
authorAleksander Morgado <aleksander@aleksander.es>
Tue, 19 Nov 2019 12:54:50 +0000 (13:54 +0100)
committerAleksander Morgado <aleksander@aleksander.es>
Wed, 27 Nov 2019 08:28:10 +0000 (09:28 +0100)
Otherwise, if the modem is reseted, netifd will think that the device
is gone forever.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
net/modemmanager/Makefile
net/modemmanager/files/modemmanager.proto

index 166fa63652997ac497aac51ea4ca1c7a6d7d1177..952f7c3e7f8468d64cc5434ef9fccad9738a8460 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=modemmanager
 PKG_VERSION:=1.12.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager
index 7fb589c78d1453aa3ad138947632d3392b3eb9ca..b7d99f41d12655ba77ed7574ea2bbfad3b451e26 100755 (executable)
@@ -304,6 +304,8 @@ modemmanager_disconnected_method_common() {
 }
 
 proto_modemmanager_init_config() {
+       available=1
+       no_device=1
        proto_config_add_string  "device:device"
        proto_config_add_string  apn
        proto_config_add_string  username