Hi Aleksander,<div><br></div><div>> I have a LN930 that I can switch to MBIM mode, but it exposes Intel's VID, not the Telit VID. Do you know if this would be something happening to all MBIM-capable Telit modems?</div><div><br></div><div>this shouldn't happen. How do you switch to MBIM mode?</div><div><br></div><div>Carlo<br><br>Il venerdì 24 marzo 2017, Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Vendor specific plugins that support QMI or MBIM based devices need to<br>
handle the creation of these modems themselves.<br>
<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=100372" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=100372</a><br>
---<br>
<br>
Hey Carlo and Daniele,<br>
<br>
This patch makes the Telit plugin accept QMI and MBIM modems. Can any of you test it with such modems to make sure the Telit plugin is the one grabbing them?<br>
<br>
I have a LN930 that I can switch to MBIM mode, but it exposes Intel's VID, not the Telit VID. Do you know if this would be something happening to all MBIM-capable Telit modems?<br>
<br>
Cheers!<br>
<br>
---<br>
plugins/telit/77-mm-telit-<wbr>port-types.rules | 3 ---<br>
plugins/telit/mm-plugin-telit.<wbr>c | 33 +++++++++++++++++++++++++++++-<br>
2 files changed, 32 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/plugins/telit/77-mm-telit-<wbr>port-types.rules b/plugins/telit/77-mm-telit-<wbr>port-types.rules<br>
index 36a4f99f..1b58a3d9 100644<br>
--- a/plugins/telit/77-mm-telit-<wbr>port-types.rules<br>
+++ b/plugins/telit/77-mm-telit-<wbr>port-types.rules<br>
@@ -51,7 +51,4 @@ ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0022", ENV{ID_MM_TELIT_PORTS_TAGGED}<br>
ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0036", ENV{ID_MM_TELIT_TAGGED}="1"<br>
ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0036", ENV{ID_MM_TELIT_PORTS_TAGGED}=<wbr>"1"<br>
<br>
-# NOTE: Qualcomm Gobi-based devices like the LE920 should not be handled<br>
-# by this plugin, but by the Gobi plugin.<br>
-<br>
LABEL="mm_telit_port_types_<wbr>end"<br>
diff --git a/plugins/telit/mm-plugin-<wbr>telit.c b/plugins/telit/mm-plugin-<wbr>telit.c<br>
index ec3c024f..abb87e4f 100644<br>
--- a/plugins/telit/mm-plugin-<wbr>telit.c<br>
+++ b/plugins/telit/mm-plugin-<wbr>telit.c<br>
@@ -28,6 +28,15 @@<br>
#include "mm-common-telit.h"<br>
#include "mm-broadband-modem-telit.h"<br>
<br>
+<br>
+#if defined WITH_QMI<br>
+# include "mm-broadband-modem-qmi.h"<br>
+#endif<br>
+<br>
+#if defined WITH_MBIM<br>
+# include "mm-broadband-modem-mbim.h"<br>
+#endif<br>
+<br>
G_DEFINE_TYPE (MMPluginTelit, mm_plugin_telit, MM_TYPE_PLUGIN)<br>
<br>
MM_PLUGIN_DEFINE_MAJOR_VERSION<br>
@@ -44,6 +53,28 @@ create_modem (MMPlugin *self,<br>
GList *probes,<br>
GError **error)<br>
{<br>
+#if defined WITH_QMI<br>
+ if (mm_port_probe_list_has_qmi_<wbr>port (probes)) {<br>
+ mm_dbg ("QMI-powered Telit modem found...");<br>
+ return MM_BASE_MODEM (mm_broadband_modem_qmi_new (uid,<br>
+ drivers,<br>
+ mm_plugin_get_name (self),<br>
+ vendor,<br>
+ product));<br>
+ }<br>
+#endif<br>
+<br>
+#if defined WITH_MBIM<br>
+ if (mm_port_probe_list_has_mbim_<wbr>port (probes)) {<br>
+ mm_dbg ("MBIM-powered Telit modem found...");<br>
+ return MM_BASE_MODEM (mm_broadband_modem_mbim_new (uid,<br>
+ drivers,<br>
+ mm_plugin_get_name (self),<br>
+ vendor,<br>
+ product));<br>
+ }<br>
+#endif<br>
+<br>
return MM_BASE_MODEM (mm_broadband_modem_telit_new (uid,<br>
drivers,<br>
mm_plugin_get_name (self),<br>
@@ -56,7 +87,7 @@ create_modem (MMPlugin *self,<br>
G_MODULE_EXPORT MMPlugin *<br>
mm_plugin_create (void)<br>
{<br>
- static const gchar *subsystems[] = { "tty", NULL };<br>
+ static const gchar *subsystems[] = { "tty", "net", "usb", NULL };<br>
/* Vendors: Telit */<br>
static const guint16 vendor_ids[] = { 0x1bc7, 0 };<br>
static const gchar *vendor_strings[] = { "telit", NULL };<br>
--<br>
2.12.0<br>
</blockquote></div>