uqmi: explicitly disconnect IPv6 address family
authorLech Perczak <lech.perczak@gmail.com>
Tue, 15 Mar 2022 18:27:48 +0000 (19:27 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 2 Apr 2023 16:54:39 +0000 (18:54 +0200)
Some modems (namely, Telit LE910C4) require the IPv6 connection state to
be cleared explicitly, to avoid reporting "no effect" if IPv6
connection is already connected through autoconnect mechanism, or during
LTE default bearer attach, which would lead to established session, but
without a way to inform protocol handler of the status.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index 5045ce04af59de24d42ea6485f804bc40e66038f..c271cb86607525ae613491fa2860f4617f9b03da 100755 (executable)
@@ -192,6 +192,7 @@ proto_qmi_setup() {
 
        # Cleanup current state if any
        uqmi -s -d "$device" --stop-network 0xffffffff --autoconnect > /dev/null 2>&1
+       uqmi -s -d "$device" --set-ip-family ipv6 --stop-network 0xffffffff --autoconnect > /dev/null 2>&1
 
        # Go online
        uqmi -s -d "$device" --set-device-operating-mode online > /dev/null 2>&1