aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-10-07 22:28:00 +0200
committerDavid Bauer <mail@david-bauer.net>2023-10-31 21:12:15 +0100
commit0bc2b2a7803ad28702ec83cdce13c694ecaaef34 (patch)
treed0a7df5318b3990502709fc4410e89f70c99a659 /package
parent696c9f723d3b2fe1577da849bab97a93b9ad5d68 (diff)
uqmi: increase wait time before checking connection state
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>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh2
1 files changed, 1 insertions, 1 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 52515dd9c1..8c335b5775 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -253,7 +253,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