aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-qmi.h
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-03-28 15:46:00 -0500
committerDan Williams <dan@ioncontrol.co>2025-04-09 13:19:50 +0000
commitf5ae14d0b2daae818b195366eaa9b16ecc964dfa (patch)
tree5e47ac5cd9399aabc3f3701aeb8d6696d98305e7 /src/mm-modem-helpers-qmi.h
parent467a53f189ddcec87ddba0aa0c72c7d3ca34e2e4 (diff)
modem-helpers-qmi: better handle no supported modes
Dell Snapdragon X62 before FCC Unlock reports no radio interfaces from QMI and no device capabilities from MBIM. Instead of asserting in mm_filter_supported_modes() when called from mm_supported_modes_from_qmi_supported_modes_context() gracefully handle the lack of supported modes. Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-modem-helpers-qmi.h')
-rw-r--r--src/mm-modem-helpers-qmi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-modem-helpers-qmi.h b/src/mm-modem-helpers-qmi.h
index 6adb1597..75fdd5f7 100644
--- a/src/mm-modem-helpers-qmi.h
+++ b/src/mm-modem-helpers-qmi.h
@@ -217,8 +217,9 @@ typedef struct {
MMModemCapability current_capabilities;
} MMQmiSupportedModesContext;
-GArray *mm_supported_modes_from_qmi_supported_modes_context (MMQmiSupportedModesContext *ctx,
- gpointer log_object);
+GArray *mm_supported_modes_from_qmi_supported_modes_context (MMQmiSupportedModesContext *ctx,
+ gpointer log_object,
+ GError **error);
/*****************************************************************************/
/* QMI unique id manipulation */