aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/uqmi/files
diff options
context:
space:
mode:
authorFilip Moc <lede@moc6.cz>2020-11-18 20:37:17 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-11-22 21:14:09 +0000
commitce293cd3ac3a594d536dc4243e85434fa503265b (patch)
treea6ee06cf845914d0b86ebac247de7f1431a89a70 /package/network/utils/uqmi/files
parent9ebbb5511392571c008f92f37bf477d04c2f4d88 (diff)
downloadupstream-ce293cd3ac3a594d536dc4243e85434fa503265b.tar.gz
upstream-ce293cd3ac3a594d536dc4243e85434fa503265b.tar.bz2
upstream-ce293cd3ac3a594d536dc4243e85434fa503265b.zip
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. Signed-off-by: Filip Moc <lede@moc6.cz>
Diffstat (limited to 'package/network/utils/uqmi/files')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh3
1 files changed, 3 insertions, 0 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 a77523cd40..13a4fc9611 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