modemmanager: check status of report-kernel-event 22485/head
authorOliver Sedlbauer <osedlbauer@tdt.de>
Mon, 16 Oct 2023 14:42:25 +0000 (16:42 +0200)
committerOliver Sedlbauer <osedlbauer@tdt.de>
Wed, 25 Oct 2023 07:33:22 +0000 (09:33 +0200)
commit01fb59f4e2366e89f96c432ff66b355f600302d6
tree250234d5fa3d5e602489e971a914cd4f9398bc51
parent9ae43c14e85e621350372e7e1a3faf06cfc1c9b3
modemmanager: check status of report-kernel-event

At mm_report_modem_wait a wait status is set. When attempting to report
an event (via hotplug or during startup) and the DBus is not yet available,
the status in the sysfs cache is set to 'processed' incorrectly, even
if mmcli fails.
This is fixed by aborting the operation and logging an error when
the kernel report fails.

Signed-off-by: Oliver Sedlbauer <osedlbauer@tdt.de>
net/modemmanager/Makefile
net/modemmanager/files/modemmanager.common