aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem-mbim.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 89ca4d54..2f3ecda1 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -166,6 +166,14 @@ shared_qmi_peek_client (MMSharedQmi *self,
return NULL;
}
+ if (!mm_port_mbim_supports_qmi (port)) {
+ g_set_error (error,
+ MM_CORE_ERROR,
+ MM_CORE_ERROR_UNSUPPORTED,
+ "Unsupported");
+ return NULL;
+ }
+
client = mm_port_mbim_peek_qmi_client (port, service);
if (!client)
g_set_error (error,