[LEDE-DEV] [LEDE-DEV, 3/3, v2] uqmi: Prevent 'POLICY MISMATH' error.

Nikolay Ledovskikh nledovskikh at gmail.com
Fri Dec 16 01:10:25 PST 2016


Thanks for your comments. I'll update patches with your tips and send
new versions.

2016-12-16 11:41 GMT+03:00 Matti Laakso <malaakso at elisanet.fi>:
>> On 07/12/2016 18:13, Nickolay Ledovskikh wrote:
>> >/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
>> > <http://lists.infradead.org/mailman/listinfo/lede-dev>> />/---
>> > />/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
>> > fb4c339..3b24539 100755 />/---
>> > a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh />/+++
>> > b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh />/@@ -85,6 +85,7
>> > @@ proto_qmi_setup() { />//>/# try to clear previous autoconnect state />/#
>> > do not reuse previous wds client id to prevent hangs caused by stale data
>> > />/+ uqmi -s -d "$device" --sync />/uqmi -s -d "$device" \ />/--stop-network
>> > 0xffffffff \ />/--autoconnect > /dev/null />//
>> patch does not apply anymore after the latest series from Matti
>>
>>         John
>
>
> And you also need to bump up the uqmi version in the Makefile.
>
> Otherwise I think calling sync in the beginning is a good idea.
>
> Matti



-- 
Best regards, Nikolay Ledovskikh.



More information about the Lede-dev mailing list