diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-23 01:36:00 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-23 01:36:00 -0700 |
commit | bcfb75d88de4679d1ca2dfc65395c49315534ec0 (patch) | |
tree | a3c09ad3ec6564b5aa2f1810679413d8bcaaacd5 /plugins/mm-plugin-gobi.c | |
parent | c36aacee0a287f1d9b7365fd79a48555b92e1356 (diff) |
core: grab probed QCDM ports for plugins where they are useful
Diffstat (limited to 'plugins/mm-plugin-gobi.c')
-rw-r--r-- | plugins/mm-plugin-gobi.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/mm-plugin-gobi.c b/plugins/mm-plugin-gobi.c index 77da9652..a504085f 100644 --- a/plugins/mm-plugin-gobi.c +++ b/plugins/mm-plugin-gobi.c @@ -141,12 +141,10 @@ grab_port (MMPluginBase *base, return NULL; } } - } else { - if (caps & (MM_PLUGIN_BASE_PORT_CAP_GSM | CAP_CDMA)) { - modem = existing; - if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) - return NULL; - } + } else if (get_level_for_capabilities (caps)) { + modem = existing; + if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) + return NULL; } return modem; |