]> git.ipfire.org Git - thirdparty/openwrt.git/commit
qmi: increase SIM power-cycle timeouts 18772/head
authorAntti Seppälä <a.seppala@gmail.com>
Sat, 10 May 2025 10:54:56 +0000 (13:54 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 29 May 2025 22:16:48 +0000 (00:16 +0200)
commitd63663601de4feb2b7a049c9b0901f10e79496cb
treebf0fbebc5cafc5fc68ccb4305af8a3014d014e67
parent32ed3db1a0c36aeecd027ee585669ab0a390ac22
qmi: increase SIM power-cycle timeouts

Some modems and SIM cards take a bit longer to initialize after UIM has been
powered off. Waiting too little time can cause the qmi protocol to end up
in a loop repeatedly power-cycling the SIM card.

Avoid that by
 a) increasing the time we unconditionally sleep after --uim-power-on
 b) increasing the time we allow uqmi to wait for response for --uim-get-sim-state

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18772
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh