aboutsummaryrefslogtreecommitdiff
path: root/plugins/telit/mm-plugin-telit.c
diff options
context:
space:
mode:
authorDaniele Palmas <dnlplm@gmail.com>2022-05-04 14:26:53 +0200
committerDaniele Palmas <dnlplm@gmail.com>2022-05-24 09:22:06 +0200
commit1642c5e00ff37b3e4a92f371924d1320af94d6cd (patch)
treef8667449c5c905104a4f0851ed5e849a606734e3 /plugins/telit/mm-plugin-telit.c
parentce71b580fc1e722d93c09cefaaeaf41e4ec6e545 (diff)
telit: add wwan support
Diffstat (limited to 'plugins/telit/mm-plugin-telit.c')
-rw-r--r--plugins/telit/mm-plugin-telit.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/plugins/telit/mm-plugin-telit.c b/plugins/telit/mm-plugin-telit.c
index 856081e5..89777b2c 100644
--- a/plugins/telit/mm-plugin-telit.c
+++ b/plugins/telit/mm-plugin-telit.c
@@ -71,7 +71,8 @@ create_modem (MMPlugin *self,
drivers,
mm_plugin_get_name (self),
vendor,
- product));
+ product,
+ subsystem_vendor));
}
#endif
@@ -87,9 +88,13 @@ create_modem (MMPlugin *self,
G_MODULE_EXPORT MMPlugin *
mm_plugin_create (void)
{
- static const gchar *subsystems[] = { "tty", "net", "usbmisc", NULL };
+ static const gchar *subsystems[] = { "tty", "net", "usbmisc", "wwan", NULL };
/* Vendors: Telit */
static const guint16 vendor_ids[] = { 0x1bc7, 0 };
+ static const mm_uint16_pair subsystem_vendor_ids[] = {
+ { 0x17cb, 0x1c5d }, /* FN990 */
+ { 0, 0 }
+ };
static const gchar *vendor_strings[] = { "telit", NULL };
/* Custom init for port identification */
static const MMAsyncMethod custom_init = {
@@ -99,14 +104,15 @@ mm_plugin_create (void)
return MM_PLUGIN (
g_object_new (MM_TYPE_PLUGIN_TELIT,
- MM_PLUGIN_NAME, MM_MODULE_NAME,
- 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_QMI, TRUE,
- MM_PLUGIN_ALLOWED_MBIM, TRUE,
- MM_PLUGIN_CUSTOM_INIT, &custom_init,
+ MM_PLUGIN_NAME, MM_MODULE_NAME,
+ MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
+ MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
+ MM_PLUGIN_ALLOWED_SUBSYSTEM_VENDOR_IDS, subsystem_vendor_ids,
+ MM_PLUGIN_ALLOWED_VENDOR_STRINGS, vendor_strings,
+ MM_PLUGIN_ALLOWED_AT, TRUE,
+ MM_PLUGIN_ALLOWED_QMI, TRUE,
+ MM_PLUGIN_ALLOWED_MBIM, TRUE,
+ MM_PLUGIN_CUSTOM_INIT, &custom_init,
NULL));
}