uqmi: Prevent 'POLICY MISMATH' error.
authorNickolay Ledovskikh <nledovskikh@gmail.com>
Fri, 16 Dec 2016 12:41:06 +0000 (15:41 +0300)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 08:35:36 +0000 (09:35 +0100)
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>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index cab9cb9..1f260ae 100755 (executable)
@@ -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