diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-31 14:59:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:42 +0100 |
commit | 41bf8413342eeb6aab270495e3bfb4842faba0a2 (patch) | |
tree | e5d6a04776988ebb64c63266f57d480d38d4ea72 | |
parent | def30139d7feb32fdc8a6c5e18a7f95d1d4417dc (diff) |
generic: allow QCDM ports
-rw-r--r-- | plugins/mm-plugin-generic.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/mm-plugin-generic.c b/plugins/mm-plugin-generic.c index 9c11d7d8..8b2bc3bc 100644 --- a/plugins/mm-plugin-generic.c +++ b/plugins/mm-plugin-generic.c @@ -52,9 +52,10 @@ grab_port (MMPluginBase *base, subsys = mm_port_probe_get_port_subsys (probe); name = mm_port_probe_get_port_name (probe); - /* The generic plugin cannot do anything with non-AT ports */ - if (!mm_port_probe_is_at (probe)) { - g_set_error (error, 0, 0, "Ignoring non-AT port"); + /* The generic plugin cannot do anything with non-AT and non-QCDM ports */ + if (!mm_port_probe_is_at (probe) && + !mm_port_probe_is_qcdm (probe)) { + g_set_error (error, 0, 0, "Ignoring non-AT/non-QCDM ports"); return NULL; } @@ -91,7 +92,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; @@ -112,6 +115,7 @@ mm_plugin_create (void) MM_PLUGIN_BASE_NAME, MM_PLUGIN_GENERIC_NAME, MM_PLUGIN_BASE_ALLOWED_SUBSYSTEMS, subsystems, MM_PLUGIN_BASE_ALLOWED_AT, TRUE, + MM_PLUGIN_BASE_ALLOWED_QCDM, TRUE, NULL)); } @@ -127,4 +131,3 @@ mm_plugin_generic_class_init (MMPluginGenericClass *klass) pb_class->grab_port = grab_port; } - |