diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2018-02-15 15:16:01 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-02-18 09:34:32 +0100 |
commit | 5661ac1de4d81c51cdc6f6f333bec3608ec43438 (patch) | |
tree | d644f5dbc63d1ca812b37cbb497333269f3b3e60 /package/network/utils | |
parent | 7c259fb98018e4ab097df0d14ac6b3e4ae1c2650 (diff) | |
download | upstream-5661ac1de4d81c51cdc6f6f333bec3608ec43438.tar.gz upstream-5661ac1de4d81c51cdc6f6f333bec3608ec43438.tar.bz2 upstream-5661ac1de4d81c51cdc6f6f333bec3608ec43438.zip |
uqmi: use general method for state cleaning
Debugging shows that using the general method properly cleans on each
run, while the method specifying the client-ID shows "No effect"
even while in connected state.
Fixes several connectivity issues seen on specific modems.
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'package/network/utils')
-rwxr-xr-x | package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 14 |
1 files changed, 4 insertions, 10 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 1619c2b35e..eba0922e57 100755 --- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh +++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh @@ -97,6 +97,10 @@ proto_qmi_setup() { } } + # Cleanup current state if any + uqmi -s -d "$device" --stop-network 0xffffffff --autoconnect + + # Set IP format uqmi -s -d "$device" --set-data-format 802.3 uqmi -s -d "$device" --wda-set-data-format 802.3 dataformat="$(uqmi -s -d "$device" --wda-get-data-format)" @@ -144,11 +148,6 @@ proto_qmi_setup() { uqmi -s -d "$device" --set-client-id wds,"$cid_4" --set-ip-family ipv4 > /dev/null - # try to clear previous autoconnect state - uqmi -s -d "$device" --set-client-id wds,"$cid_4" \ - --stop-network 0xffffffff \ - --autoconnect > /dev/null - pdh_4=$(uqmi -s -d "$device" --set-client-id wds,"$cid_4" \ --start-network \ ${apn:+--apn $apn} \ @@ -175,11 +174,6 @@ proto_qmi_setup() { uqmi -s -d "$device" --set-client-id wds,"$cid_6" --set-ip-family ipv6 > /dev/null - # try to clear previous autoconnect state - uqmi -s -d "$device" --set-client-id wds,"$cid_6" \ - --stop-network 0xffffffff \ - --autoconnect > /dev/null - pdh_6=$(uqmi -s -d "$device" --set-client-id wds,"$cid_6" \ --start-network \ ${apn:+--apn $apn} \ |