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>
master
Nickolay Ledovskikh 8 years ago committed by John Crispin
parent 4146047eaf
commit 600d648a0d
  1. 1
      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" --set-data-format 802.3
uqmi -s -d "$device" --wda-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" echo "Waiting for network registration"
while uqmi -s -d "$device" --get-serving-system | grep '"searching"' > /dev/null; do while uqmi -s -d "$device" --get-serving-system | grep '"searching"' > /dev/null; do

Loading…
Cancel
Save