[FS#527] QMI modem Olivetti Techcenter (0b3c:c00a) freezes on uqmi --sync call (never connects)

LEDE Bugs lede-bugs at lists.infradead.org
Tue Apr 11 08:08:19 PDT 2017


The following task has a new comment added:

FS#527 - QMI modem Olivetti Techcenter (0b3c:c00a) freezes on uqmi --sync call (never connects)
User who did this - xavifr (xavifr)

----------
I have the same problem with QMI Device ZTE MF110 (19d2/0124)

Commenting out "--sync" line works only for the first connect.
If you execute 'ifdown wwan' and then 'ifup wwan' it will fail.

To workaround it, I've reverted this feature to CC's variant.


--- /rom/lib/netifd/proto/qmi.sh
+++ /lib/netifd/proto/qmi.sh
@@ -25,6 +25,14 @@
 	proto_config_add_defaults
 }
 
+qmi_disconnect() {
+        # disable previous autoconnect state using the global handle
+        # do not reuse previous wds client id to prevent hangs caused by stale data
+        uqmi -s -d "$device" \
+                --stop-network 0xffffffff \
+                --autoconnect > /dev/null
+}
+
 proto_qmi_setup() {
 	local interface="$1"
 
@@ -96,9 +104,10 @@
 		}
 	}
 
+	qmi_disconnect
+
 	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"
 	while uqmi -s -d "$device" --get-serving-system | grep '"searching"' > /dev/null; do

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=527#comment2403



More information about the lede-bugs mailing list