uqmi: set device-operating-mode to online
authorFilip Moc <lede@moc6.cz>
Wed, 18 Nov 2020 19:37:17 +0000 (20:37 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 22 Nov 2020 21:14:09 +0000 (21:14 +0000)
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/Makefile
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index 4a15a15c19de07a32380b8edeea6cbfeb41641bd..428d697fdfb741b05662d0b9cbf5f44e728632ea 100644 (file)
@@ -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
index a77523cd407feb6bd22f4f1993b9e61961bbb314..13a4fc96119b24ff18ded552f00f38380e7853c5 100755 (executable)
@@ -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