Re: [LEDE-DEV] [PATCH] uqmi: Set data format after clearing previous autoconnect state.

2017-01-26 Thread Nikolay Ledovskikh
Hi. Any interest?

2016-12-30 14:12 GMT+03:00 Nickolay Ledovskikh :
> Clearing previous autoconnect state when using Sierra Airprime MC7304
> drops data format to 'raw-ip' (MC7710 is not behave the same). This
> leads to dhcp freeze. So data format must be set after stopping
> previous network.
>
> Signed-off-by: Nickolay Ledovskikh 
> ---
>  package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 8 ++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> 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 35de6c5..47475f6 100755
> --- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
> +++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
> @@ -96,8 +96,6 @@ 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"
> @@ -134,6 +132,9 @@ proto_qmi_setup() {
> --stop-network 0x \
> --autoconnect > /dev/null
>
> +   uqmi -s -d "$device" --set-data-format 802.3
> +   uqmi -s -d "$device" --wda-set-data-format 802.3
> +
> pdh_4=`uqmi -s -d "$device" --set-client-id wds,"$cid_4" \
> --start-network \
> ${apn:+--apn $apn} \
> @@ -165,6 +166,9 @@ proto_qmi_setup() {
> --stop-network 0x \
> --autoconnect > /dev/null
>
> +   uqmi -s -d "$device" --set-data-format 802.3
> +   uqmi -s -d "$device" --wda-set-data-format 802.3
> +
> pdh_6=`uqmi -s -d "$device" --set-client-id wds,"$cid_6" \
> --start-network \
> ${apn:+--apn $apn} \
> --
> 2.7.3
>



-- 
Best regards, Nikolay Ledovskikh.

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] uqmi: Set data format after clearing previous autoconnect state.

2016-12-30 Thread Nickolay Ledovskikh
Clearing previous autoconnect state when using Sierra Airprime MC7304
drops data format to 'raw-ip' (MC7710 is not behave the same). This
leads to dhcp freeze. So data format must be set after stopping
previous network.

Signed-off-by: Nickolay Ledovskikh 
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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 35de6c5..47475f6 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -96,8 +96,6 @@ 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"
@@ -134,6 +132,9 @@ proto_qmi_setup() {
--stop-network 0x \
--autoconnect > /dev/null
 
+   uqmi -s -d "$device" --set-data-format 802.3
+   uqmi -s -d "$device" --wda-set-data-format 802.3
+
pdh_4=`uqmi -s -d "$device" --set-client-id wds,"$cid_4" \
--start-network \
${apn:+--apn $apn} \
@@ -165,6 +166,9 @@ proto_qmi_setup() {
--stop-network 0x \
--autoconnect > /dev/null
 
+   uqmi -s -d "$device" --set-data-format 802.3
+   uqmi -s -d "$device" --wda-set-data-format 802.3
+
pdh_6=`uqmi -s -d "$device" --set-client-id wds,"$cid_6" \
--start-network \
${apn:+--apn $apn} \
-- 
2.7.3


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev