aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNickolay Ledovskikh <nledovskikh@gmail.com>2016-12-16 15:41:06 +0300
committerJohn Crispin <john@phrozen.org>2016-12-20 09:35:36 +0100
commit600d648a0db310de25d554fcebcdb46e682ae274 (patch)
tree29d0a6a965b0128e5ebf59cb0c3e87e10bd4bce3
parent4146047eaf33987e7fb2dea85d947954eafac3bc (diff)
downloadupstream-600d648a0db310de25d554fcebcdb46e682ae274.tar.gz
upstream-600d648a0db310de25d554fcebcdb46e682ae274.tar.bz2
upstream-600d648a0db310de25d554fcebcdb46e682ae274.zip
uqmi: Prevent 'POLICY MISMATH' error.
Add uqmi 'sync' command call to release stalled cid when preparing to setup new connection. As a result it prevents 'POLICY MISMATCH' errors. Signed-off-by: Nickolay Ledovskikh <nledovskikh@gmail.com>
-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 cab9cb9121..1f260ae3c2 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -78,6 +78,7 @@ proto_qmi_setup() {
uqmi -s -d "$device" --set-data-format 802.3
uqmi -s -d "$device" --wda-set-data-format 802.3
+ uqmi -s -d "$device" --sync
echo "Waiting for network registration"
while uqmi -s -d "$device" --get-serving-system | grep '"searching"' > /dev/null; do