broadband-modem-qmi: allow lookup of QMI for data without SIO port

This commit is contained in:
Aleksander Morgado
2021-02-17 23:34:01 +01:00
parent 381e2f382b
commit aba237df4e
2 changed files with 3 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ peek_port_qmi_for_data (MMBroadbandModemQmi *self,
} }
/* Set outputs */ /* Set outputs */
if (out_sio_port)
*out_sio_port = sio_port_per_port_number[net_port_number]; *out_sio_port = sio_port_per_port_number[net_port_number];
found = MM_PORT_QMI (rpmsg_qmi_ports->data); found = MM_PORT_QMI (rpmsg_qmi_ports->data);

View File

@@ -286,7 +286,7 @@ peek_port_qmi_for_data (MMBroadbandModemQmi *self,
MM_CORE_ERROR_NOT_FOUND, MM_CORE_ERROR_NOT_FOUND,
"Couldn't find associated QMI port for 'net/%s'", "Couldn't find associated QMI port for 'net/%s'",
mm_port_get_device (data)); mm_port_get_device (data));
else else if (out_sio_port)
*out_sio_port = QMI_SIO_PORT_NONE; *out_sio_port = QMI_SIO_PORT_NONE;
return found; return found;