aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-modem-base.c')
-rw-r--r--src/mm-modem-base.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mm-modem-base.c b/src/mm-modem-base.c
index 389f5f04..697a26eb 100644
--- a/src/mm-modem-base.c
+++ b/src/mm-modem-base.c
@@ -22,6 +22,7 @@
#include "mm-modem-base.h"
#include "mm-modem.h"
#include "mm-at-serial-port.h"
+#include "mm-qcdm-serial-port.h"
#include "mm-errors.h"
#include "mm-options.h"
#include "mm-properties-changed-signal.h"
@@ -120,9 +121,12 @@ mm_modem_base_add_port (MMModemBase *self,
g_return_val_if_fail (port == NULL, FALSE);
}
- if (!strcmp (subsys, "tty"))
- port = MM_PORT (mm_at_serial_port_new (name, ptype));
- else if (!strcmp (subsys, "net")) {
+ if (!strcmp (subsys, "tty")) {
+ if (ptype == MM_PORT_TYPE_QCDM)
+ port = MM_PORT (mm_qcdm_serial_port_new (name, ptype));
+ else
+ port = MM_PORT (mm_at_serial_port_new (name, ptype));
+ } else if (!strcmp (subsys, "net")) {
port = MM_PORT (g_object_new (MM_TYPE_PORT,
MM_PORT_DEVICE, name,
MM_PORT_SUBSYS, MM_PORT_SUBSYS_NET,