telit: support RS232 modems
Adding the vendor string match allows us to support RS232 devices in the Telit plugin: the USB vendor id check may now be ignored and instead we probe for the vendor string via AT commands, which works even if the device is behind a USB<->RS232 adapter. https://bugs.freedesktop.org/show_bug.cgi?id=100171
This commit is contained in:
@@ -59,6 +59,7 @@ mm_plugin_create (void)
|
||||
static const gchar *subsystems[] = { "tty", NULL };
|
||||
/* Vendors: Telit */
|
||||
static const guint16 vendor_ids[] = { 0x1bc7, 0 };
|
||||
static const gchar *vendor_strings[] = { "telit", NULL };
|
||||
/* Only handle TELIT tagged devices here. */
|
||||
static const gchar *udev_tags[] = {
|
||||
"ID_MM_TELIT_TAGGED",
|
||||
@@ -72,12 +73,13 @@ mm_plugin_create (void)
|
||||
|
||||
return MM_PLUGIN (
|
||||
g_object_new (MM_TYPE_PLUGIN_TELIT,
|
||||
MM_PLUGIN_NAME, "Telit",
|
||||
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
|
||||
MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
|
||||
MM_PLUGIN_ALLOWED_AT, TRUE,
|
||||
MM_PLUGIN_ALLOWED_UDEV_TAGS, udev_tags,
|
||||
MM_PLUGIN_CUSTOM_INIT, &custom_init,
|
||||
MM_PLUGIN_NAME, "Telit",
|
||||
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
|
||||
MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
|
||||
MM_PLUGIN_ALLOWED_VENDOR_STRINGS, vendor_strings,
|
||||
MM_PLUGIN_ALLOWED_AT, TRUE,
|
||||
MM_PLUGIN_ALLOWED_UDEV_TAGS, udev_tags,
|
||||
MM_PLUGIN_CUSTOM_INIT, &custom_init,
|
||||
NULL));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user