aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-port-probe.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index b7ad3779..91f101e2 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -381,7 +381,9 @@ typedef enum {
PROBE_STEP_AT_PRODUCT,
PROBE_STEP_AT_ICERA,
PROBE_STEP_AT_XMM,
+ PROBE_STEP_AT_CLOSE_PORT,
PROBE_STEP_QCDM,
+ PROBE_STEP_QCDM_CLOSE_PORT,
PROBE_STEP_QMI,
PROBE_STEP_MBIM,
PROBE_STEP_LAST
@@ -1445,6 +1447,14 @@ probe_step (MMPortProbe *self)
ctx->step++;
/* Fall through */
+ case PROBE_STEP_AT_CLOSE_PORT:
+ if (ctx->serial) {
+ mm_obj_msg (self, "probe step: AT close port");
+ clear_probe_serial_port (ctx);
+ }
+ ctx->step++;
+ /* Fall through */
+
case PROBE_STEP_QCDM:
/* QCDM requested and not already probed? */
if ((ctx->flags & MM_PORT_PROBE_QCDM) && !(self->priv->flags & MM_PORT_PROBE_QCDM)) {
@@ -1455,6 +1465,14 @@ probe_step (MMPortProbe *self)
ctx->step++;
/* Fall through */
+ case PROBE_STEP_QCDM_CLOSE_PORT:
+ if (ctx->serial) {
+ mm_obj_msg (self, "probe step: QCDM close port");
+ clear_probe_serial_port (ctx);
+ }
+ ctx->step++;
+ /* Fall through */
+
case PROBE_STEP_QMI:
/* QMI probing needed? */
if ((ctx->flags & MM_PORT_PROBE_QMI) && !(self->priv->flags & MM_PORT_PROBE_QMI)) {