From ded020efeb25b88b0c80319e5279936ec03c0b63 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 9 Jan 2012 13:18:21 -0600 Subject: [PATCH] gobi: ensure QCDM ports are correctly grabbed Need to suggest that it's QCDM since the MMPortProbe stuff doesn't get passed through to mm_base_modem_grab_port() so we can't detect QCDM ports automatically there. --- plugins/mm-plugin-gobi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/mm-plugin-gobi.c b/plugins/mm-plugin-gobi.c index e70278b8..767e6ce0 100644 --- a/plugins/mm-plugin-gobi.c +++ b/plugins/mm-plugin-gobi.c @@ -65,7 +65,9 @@ grab_port (MMPluginBase *base, if (!mm_base_modem_grab_port (existing ? existing : modem, subsys, name, - MM_PORT_TYPE_UNKNOWN)) { + (mm_port_probe_is_qcdm (probe) ? + MM_PORT_TYPE_QCDM : + MM_PORT_TYPE_UNKNOWN))) { if (modem) g_object_unref (modem); return NULL;