diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-06-29 12:15:24 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-29 17:26:40 +0200 |
commit | 2038c5ed8625f925ae701f74b7573e6322844a03 (patch) | |
tree | d389e69178525fa71357b6b9bfcc4d8abf4b1a82 /plugins/pantech | |
parent | b2ea82ed3b85897094257ac63230048ab9605f1c (diff) |
pantech: create a generic QMI Broadband Modem if at least one QMI port found
Diffstat (limited to 'plugins/pantech')
-rw-r--r-- | plugins/pantech/mm-plugin-pantech.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/pantech/mm-plugin-pantech.c b/plugins/pantech/mm-plugin-pantech.c index 199afb68..754debb7 100644 --- a/plugins/pantech/mm-plugin-pantech.c +++ b/plugins/pantech/mm-plugin-pantech.c @@ -21,6 +21,7 @@ #include "mm-log.h" #include "mm-plugin-pantech.h" #include "mm-broadband-modem.h" +#include "mm-broadband-modem-qmi.h" G_DEFINE_TYPE (MMPluginPantech, mm_plugin_pantech, MM_TYPE_PLUGIN) @@ -38,6 +39,15 @@ create_modem (MMPlugin *self, GList *probes, GError **error) { + if (mm_port_probe_list_has_qmi_port (probes)) { + mm_dbg ("QMI-powered Pantech modem found..."); + return MM_BASE_MODEM (mm_broadband_modem_qmi_new (sysfs_path, + drivers, + mm_plugin_get_name (self), + vendor, + product)); + } + return MM_BASE_MODEM (mm_broadband_modem_new (sysfs_path, drivers, mm_plugin_get_name (self), @@ -75,7 +85,7 @@ grab_port (MMPlugin *self, G_MODULE_EXPORT MMPlugin * mm_plugin_create (void) { - static const gchar *subsystems[] = { "tty", "net", NULL }; + static const gchar *subsystems[] = { "tty", "net", "usb", NULL }; static const guint16 vendor_ids[] = { 0x106c, 0 }; return MM_PLUGIN ( |