aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2022-03-15 19:27:48 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-02 18:54:39 +0200
commit90603d443f56da034c8e8e4f1aeee4c8975413e6 (patch)
tree922ff27310ff3da2b7142df0f959154dea5ed30a /package/network
parent8c445d56f12ffae8620fa99a3cf4a0ad82544efd (diff)
downloadupstream-90603d443f56da034c8e8e4f1aeee4c8975413e6.tar.gz
upstream-90603d443f56da034c8e8e4f1aeee4c8975413e6.tar.bz2
upstream-90603d443f56da034c8e8e4f1aeee4c8975413e6.zip
uqmi: explicitly disconnect IPv6 address family
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>
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 5045ce04af..c271cb8660 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -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