modemmanger: add missing proto_init_update in teardown
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 21 Jul 2023 11:09:48 +0000 (13:09 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 24 Jul 2023 11:21:45 +0000 (13:21 +0200)
Inform netifd with missing 'proto_update', that the interface is not
up anymore.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 2f00e4b8d7bde7dfeec970a5945ffd39a6f692c8)

net/modemmanager/Makefile
net/modemmanager/files/modemmanager.proto

index df2e1e71b1f3490edda5e247085c054f0d8d7f86..0e69b1ccdfdb5dbff48e794d05caa7f1bc90807b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=modemmanager
 PKG_SOURCE_VERSION:=1.20.6
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
index d2483207f3081a1e5dfd8b4416a2b461510ce8ff..a3b7785de5932b6e91d8628302029b8275533669 100755 (executable)
@@ -539,6 +539,9 @@ proto_modemmanager_teardown() {
        # low power, only if requested
        [ "${lowpower:-0}" -lt 1 ] ||
                mmcli --modem="${device}" --set-power-state-low
+
+       proto_init_update "*" 0
+       proto_send_update "$interface"
 }
 
 [ -n "$INCLUDE_ONLY" ] || {