From bcfb75d88de4679d1ca2dfc65395c49315534ec0 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 23 Mar 2010 01:36:00 -0700 Subject: core: grab probed QCDM ports for plugins where they are useful --- plugins/mm-plugin-option.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'plugins/mm-plugin-option.c') diff --git a/plugins/mm-plugin-option.c b/plugins/mm-plugin-option.c index d4c402de..694eebf3 100644 --- a/plugins/mm-plugin-option.c +++ b/plugins/mm-plugin-option.c @@ -151,12 +151,13 @@ grab_port (MMPluginBase *base, return NULL; } } - } else { - if (caps & MM_PLUGIN_BASE_PORT_CAP_GSM) { - modem = existing; - if (!mm_modem_grab_port (modem, subsys, name, ptype, NULL, error)) - return NULL; - } + } else if (get_level_for_capabilities (caps)) { + if (caps & MM_PLUGIN_BASE_PORT_CAP_QCDM) + ptype = MM_PORT_TYPE_QCDM; + + modem = existing; + if (!mm_modem_grab_port (modem, subsys, name, ptype, NULL, error)) + return NULL; } return modem; -- cgit v1.2.3-70-g09d2