uqmi: increase wait time before checking connection state
authorDavid Bauer <mail@david-bauer.net>
Sat, 7 Oct 2023 20:28:00 +0000 (22:28 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 9 Oct 2023 01:37:00 +0000 (03:37 +0200)
Increase the wait time before polling the connection state for the first
time.

Depending on the prior state of the modem, the first poll might still
return a connected state. The script then tries to establish a PDP
session, which subsequently fails as the modem by then is in scan state.

Increasing the wait-time to 3 seconds mitigates this from happening.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index e89d5a43a1de9fdcc90c0191cc8c411494de5d37..53ab3d44bbc4a3fc81edac4f4de87794f84cf0eb 100755 (executable)
@@ -248,7 +248,7 @@ proto_qmi_setup() {
        uqmi -s -d "$device" --network-register > /dev/null 2>&1
 
        echo "Waiting for network registration"
-       sleep 1
+       sleep 5
        local registration_timeout=0
        local registration_state=""
        while true; do