diff mbox series

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

Message ID f15932e6991e4d63e65d0bace194e81f5242d1d1.1605724392.git.lede@moc6.cz
State Accepted
Delegated to: Daniel Golle
Headers show
Series [v2,1/4] uqmi: add support for IPv4 autoconf from QMI | expand

Commit Message

Filip Moc Nov. 18, 2020, 7:37 p.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>
---

Notes:
    v1->v2:
     - Bumped PKG_RELEASE

 package/network/utils/uqmi/Makefile                      | 2 +-
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/network/utils/uqmi/Makefile b/package/network/utils/uqmi/Makefile
index 4a15a15c19..428d697fdf 100644
--- a/package/network/utils/uqmi/Makefile
+++ b/package/network/utils/uqmi/Makefile
@@ -1,7 +1,7 @@ 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uqmi
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/uqmi.git
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