modemmanager: fix value call with modemmanager_get_field function
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 26 Sep 2024 07:57:53 +0000 (09:57 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 17 Oct 2024 16:29:16 +0000 (18:29 +0200)
commitdced576bfe90021f74eed12c6bc6006c370b7782
treea4a3b4ab2e0827b6e90df5eec2d8a2a87610df8d
parente2822c9d80100b1334786f4573f97e3ad581a1f0
modemmanager: fix value call with modemmanager_get_field function

The correct values are prefixed with 'modem.generic'. This is missing
for the value 'state' and 'state-failed-reason.

While we're at it, let's move the readout of 'state-failed-reason' to the
failed case, because that's the only place it's needed.

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