uqmi: add illegal SIM state recovery
authorDavid Bauer <mail@david-bauer.net>
Sat, 7 Oct 2023 20:27:03 +0000 (22:27 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 31 Oct 2023 20:12:15 +0000 (21:12 +0100)
commit696c9f723d3b2fe1577da849bab97a93b9ad5d68
treec9593efcfe8cd5275ae80f04c6b7b965447d2b7a
parentead0c1934855ad3a1a0c5888946c99b21042ba8c
uqmi: add illegal SIM state recovery

On some network-triggered disconnections the UIM state might end up in
"illegal". This prevents the modem from attaching to any network in
non-restricted service modes.

Detect this state and reset the SIM card. This way, the modem can attach
to networks again.

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