mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
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>
This commit is contained in:
parent
8c445d56f1
commit
90603d443f
@ -192,6 +192,7 @@ proto_qmi_setup() {
|
|||||||
|
|
||||||
# Cleanup current state if any
|
# Cleanup current state if any
|
||||||
uqmi -s -d "$device" --stop-network 0xffffffff --autoconnect > /dev/null 2>&1
|
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
|
# Go online
|
||||||
uqmi -s -d "$device" --set-device-operating-mode online > /dev/null 2>&1
|
uqmi -s -d "$device" --set-device-operating-mode online > /dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user