modemmanager: check during SIM unlocking whether initialization has been completed
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 6 Nov 2024 13:28:57 +0000 (14:28 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 15 Nov 2024 10:17:05 +0000 (11:17 +0100)
commit24d2ba0ba88043dbe7f116d07aa26b3a841877dc
tree1351760c5d79fcd975b0dc7565eaae8b371adb5c
parentfa6198e36b77dadaeb8110d48ab456b82ce21815
modemmanager: check during SIM unlocking whether initialization has been completed

After the SIM has been successfully unlocked, it is initialized. This can
take longer on some modems, so we must wait until the modem is ready to
execute the next commands.

Otherwise the modem cannot be enabled and aborts with the following
error message:

error: couldn't enable the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.WrongState: modem in initializing state'

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/modemmanager/files/lib/netifd/proto/modemmanager.sh