aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-10-25 14:05:50 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-11-09 18:41:57 +0100
commit7faa3a5e2518765bb3683c26ecdf3155046424b0 (patch)
tree8114122cf8fb8d7f19853652934c7a54348e485a /src/mm-base-modem.c
parent4ec2db75b8fc1175c12d007ca64d2edcf630e3cc (diff)
port-mbim: allow specifying input subsystem
We have assumed until now that all MBIM ports are based on the cdc_mbim driver, exposed in the 'usbmisc' subsystem by the cdc-wdm driver. This may no longer be true, so allow creating MBIM ports with an explicit subsystem instead of defaulting always to USBMISC.
Diffstat (limited to 'src/mm-base-modem.c')
-rw-r--r--src/mm-base-modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-modem.c b/src/mm-base-modem.c
index d5b20b45..7dd461f5 100644
--- a/src/mm-base-modem.c
+++ b/src/mm-base-modem.c
@@ -230,7 +230,7 @@ base_modem_create_usbmisc_port (MMBaseModem *self,
#endif
#if defined WITH_MBIM
if (ptype == MM_PORT_TYPE_MBIM)
- return MM_PORT (mm_port_mbim_new (name));
+ return MM_PORT (mm_port_mbim_new (name, MM_PORT_SUBSYS_USBMISC));
#endif
if (ptype == MM_PORT_TYPE_AT)
return MM_PORT (mm_port_serial_at_new (name, MM_PORT_SUBSYS_USBMISC));