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

Nikolay Ledovskikh nledovskikh at gmail.com
Thu Jan 26 23:48:11 PST 2017


Hi. Any interest?

2016-12-30 14:12 GMT+03:00 Nickolay Ledovskikh <nledovskikh at gmail.com>:
> 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 <nledovskikh at gmail.com>
> ---
>  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 0xffffffff \
>                         --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 0xffffffff \
>                         --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.



More information about the Lede-dev mailing list