diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2020-12-16 15:11:48 +0100 |
---|---|---|
committer | Loic Poulain <loic.poulain@linaro.org> | 2021-04-21 12:53:16 +0200 |
commit | 6db2e8f04da458488c374f1a6f6979ce7fe9b67d (patch) | |
tree | b79d29dfb2b11fa10f53a3df0a2db26dcc5473af /src/mm-plugin.c | |
parent | b1db6527cf9d4801e48dfe6e9fe8124532269159 (diff) |
base: Add support for wwan subsystem
Add support for the Linux wwan subsystem that started to expose
control channel as character devices (e.g. /dev/wwan0p1MBIM...).
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r-- | src/mm-plugin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c index 5dfb4e14..2020b376 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -786,6 +786,15 @@ mm_plugin_supports_port (MMPlugin *self, probe_run_flags |= MM_PORT_PROBE_AT; if (self->priv->qmi) probe_run_flags |= MM_PORT_PROBE_QMI; + } else if (g_str_equal (mm_kernel_device_get_subsystem (port), "wwan")) { + if (self->priv->mbim) + probe_run_flags |= MM_PORT_PROBE_MBIM; + if (self->priv->qmi) + probe_run_flags |= MM_PORT_PROBE_QMI; + if (self->priv->qcdm) + probe_run_flags |= MM_PORT_PROBE_QCDM; + if (self->priv->at) + probe_run_flags |= MM_PORT_PROBE_AT; } #if defined WITH_QRTR else if (g_str_equal (mm_kernel_device_get_subsystem (port), "qrtr")) { |