]> git.ipfire.org Git - thirdparty/openwrt.git/commit
qmi: increase SIM power-cycle timeouts 18965/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>
Sun, 8 Jun 2025 19:03:58 +0000 (21:03 +0200)
commitfd85c0df78804adafa1e6b21f25c131fc89bac0b
treebc526b1ec16a5a094fe540326f03c9abe7ec609a
parent871d7a9d68c568c57ce845bb60ff7fa83db18f2d
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
(cherry picked from commit d63663601de4feb2b7a049c9b0901f10e79496cb)
Signed-off-by: Felix Baumann <felix.bau@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18965
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh