diff mbox series

[v1,2/4] uqmi: set device-operating-mode to online

Message ID 6461f4630c5d50ad6c4d630ac6e5da3688712d14.1605364389.git.lede@moc6.cz
State Superseded
Headers show
Series [v1,1/4] uqmi: add support for IPv4 autoconf from QMI | expand

Commit Message

Filip Moc Nov. 17, 2020, 11:33 a.m. UTC
This is required for LTE module MR400 (in TL-MR6400 v4).
Otherwise LTE module won't register to GSM network.

Signed-off-by: Filip Moc <lede@moc6.cz>
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 3 +++
 1 file changed, 3 insertions(+)

Comments

Adrian Schmutzler Nov. 17, 2020, 11:54 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces@lists.openwrt.org]
> On Behalf Of Filip Moc
> Sent: Dienstag, 17. November 2020 12:33
> To: openwrt-devel@lists.openwrt.org
> Subject: [PATCH v1 2/4] uqmi: set device-operating-mode to online
> 
> This is required for LTE module MR400 (in TL-MR6400 v4).
> Otherwise LTE module won't register to GSM network.

Please bump PKG_RELEASE for this package.

Can't review the change itself.

Best

Adrian

> 
> Signed-off-by: Filip Moc <lede@moc6.cz>
> ---
>  package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> 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 7870eb7382..dbfcdcb098 100755
> --- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
> +++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
> @@ -174,6 +174,9 @@ proto_qmi_setup() {
>  	# Cleanup current state if any
>  	uqmi -s -d "$device" --stop-network 0xffffffff --autoconnect >
> /dev/null 2>&1
> 
> +	# Go online
> +	uqmi -s -d "$device" --set-device-operating-mode online > /dev/null
> 2>&1
> +
>  	# Set IP format
>  	uqmi -s -d "$device" --set-data-format 802.3 > /dev/null 2>&1
>  	uqmi -s -d "$device" --wda-set-data-format 802.3 > /dev/null 2>&1
> --
> 2.28.0
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

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 7870eb7382..dbfcdcb098 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -174,6 +174,9 @@  proto_qmi_setup() {
 	# Cleanup current state if any
 	uqmi -s -d "$device" --stop-network 0xffffffff --autoconnect > /dev/null 2>&1
 
+	# Go online
+	uqmi -s -d "$device" --set-device-operating-mode online > /dev/null 2>&1
+
 	# Set IP format
 	uqmi -s -d "$device" --set-data-format 802.3 > /dev/null 2>&1
 	uqmi -s -d "$device" --wda-set-data-format 802.3 > /dev/null 2>&1