aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-04-11 11:38:49 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-29 17:14:47 +0200
commit306b4eb5094fb4f46120b41a104e937d0f41e1e9 (patch)
tree263004eceb6af16d878724dda420888bc8f9c2cf /src/mm-plugin.c
parentab67c0b7c363198078c49b6003c4a2cbdffa6694 (diff)
core: allow grabbing QMI ports
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r--src/mm-plugin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c
index a9ce28b0..ef0453bf 100644
--- a/src/mm-plugin.c
+++ b/src/mm-plugin.c
@@ -589,9 +589,10 @@ mm_plugin_supports_port (MMPlugin *self,
g_udev_device_get_subsystem (port),
g_udev_device_get_name (port));
- /* Before launching any probing, check if the port is a net device (which
- * cannot be probed). */
- if (g_str_equal (g_udev_device_get_subsystem (port), "net")) {
+ /* Before launching any probing, check if the port is a net OR a wdm device
+ * (which cannot be probed). */
+ if (g_str_equal (g_udev_device_get_subsystem (port), "net") ||
+ g_str_equal (g_udev_device_get_subsystem (port), "cdc-wdm")) {
g_simple_async_result_set_op_res_gpointer (
async_result,
GUINT_TO_POINTER (MM_PLUGIN_SUPPORTS_PORT_DEFER_UNTIL_SUGGESTED),