[source] uqmi: Prevent 'POLICY MISMATH' error.

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 20 01:35:10 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/600d648a0db310de25d554fcebcdb46e682ae274

commit 600d648a0db310de25d554fcebcdb46e682ae274
Author: Nickolay Ledovskikh <nledovskikh at gmail.com>
AuthorDate: Fri Dec 16 15:41:06 2016 +0300

    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 at gmail.com>
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 1 +
 1 file changed, 1 insertion(+)

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 cab9cb9..1f260ae 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



More information about the lede-commits mailing list