413c/81ba is a Dell branded Telit modem that is better driven by Telit
plugin. This patch avoids the modem to be taken by Dell plugin.
---
 plugins/dell/mm-plugin-dell.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/dell/mm-plugin-dell.c b/plugins/dell/mm-plugin-dell.c
index ced1f3b..2e774d0 100644
--- a/plugins/dell/mm-plugin-dell.c
+++ b/plugins/dell/mm-plugin-dell.c
@@ -416,6 +416,8 @@ mm_plugin_create (void)
 {
     static const gchar *subsystems[] = { "tty", "net", "usb", NULL };
     static const guint16 vendors[] = { 0x413c, 0 };
+    static const mm_uint16_pair forbidden_products[] = { { 0x413c, 0x81ba },
+                                                         { 0, 0 } };
     static const MMAsyncMethod custom_init = {
         .async  = G_CALLBACK (dell_custom_init),
         .finish = G_CALLBACK (dell_custom_init_finish),
@@ -426,6 +428,7 @@ mm_plugin_create (void)
                       MM_PLUGIN_NAME,                  "Dell",
                       MM_PLUGIN_ALLOWED_SUBSYSTEMS,    subsystems,
                       MM_PLUGIN_ALLOWED_VENDOR_IDS,    vendors,
+                      MM_PLUGIN_FORBIDDEN_PRODUCT_IDS, forbidden_products,
                       MM_PLUGIN_ALLOWED_AT,            TRUE,
                       MM_PLUGIN_CUSTOM_INIT,           &custom_init,
                       MM_PLUGIN_ALLOWED_QCDM,          TRUE,
-- 
2.8.1

_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to