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>
This commit is contained in:
Nickolay Ledovskikh 2016-12-16 15:41:06 +03:00 committed by John Crispin
parent 4146047eaf
commit 600d648a0d
1 changed files with 1 additions and 0 deletions

View File

@ -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