telit: add wwan support
This commit is contained in:
@@ -136,7 +136,8 @@ mm_broadband_modem_mbim_telit_new (const gchar *device,
|
|||||||
const gchar **drivers,
|
const gchar **drivers,
|
||||||
const gchar *plugin,
|
const gchar *plugin,
|
||||||
guint16 vendor_id,
|
guint16 vendor_id,
|
||||||
guint16 product_id)
|
guint16 product_id,
|
||||||
|
guint16 subsystem_vendor_id)
|
||||||
{
|
{
|
||||||
return g_object_new (MM_TYPE_BROADBAND_MODEM_MBIM_TELIT,
|
return g_object_new (MM_TYPE_BROADBAND_MODEM_MBIM_TELIT,
|
||||||
MM_BASE_MODEM_DEVICE, device,
|
MM_BASE_MODEM_DEVICE, device,
|
||||||
@@ -144,6 +145,7 @@ mm_broadband_modem_mbim_telit_new (const gchar *device,
|
|||||||
MM_BASE_MODEM_PLUGIN, plugin,
|
MM_BASE_MODEM_PLUGIN, plugin,
|
||||||
MM_BASE_MODEM_VENDOR_ID, vendor_id,
|
MM_BASE_MODEM_VENDOR_ID, vendor_id,
|
||||||
MM_BASE_MODEM_PRODUCT_ID, product_id,
|
MM_BASE_MODEM_PRODUCT_ID, product_id,
|
||||||
|
MM_BASE_MODEM_SUBSYSTEM_VENDOR_ID, subsystem_vendor_id,
|
||||||
/* MBIM bearer supports NET only */
|
/* MBIM bearer supports NET only */
|
||||||
MM_BASE_MODEM_DATA_NET_SUPPORTED, TRUE,
|
MM_BASE_MODEM_DATA_NET_SUPPORTED, TRUE,
|
||||||
MM_BASE_MODEM_DATA_TTY_SUPPORTED, FALSE,
|
MM_BASE_MODEM_DATA_TTY_SUPPORTED, FALSE,
|
||||||
|
@@ -42,6 +42,7 @@ MMBroadbandModemMbimTelit *mm_broadband_modem_mbim_telit_new (const gchar *devi
|
|||||||
const gchar **drivers,
|
const gchar **drivers,
|
||||||
const gchar *plugin,
|
const gchar *plugin,
|
||||||
guint16 vendor_id,
|
guint16 vendor_id,
|
||||||
guint16 product_id);
|
guint16 product_id,
|
||||||
|
guint16 subsystem_vendor_id);
|
||||||
|
|
||||||
#endif /* MM_BROADBAND_MODEM_TELIT_H */
|
#endif /* MM_BROADBAND_MODEM_TELIT_H */
|
||||||
|
@@ -71,7 +71,8 @@ create_modem (MMPlugin *self,
|
|||||||
drivers,
|
drivers,
|
||||||
mm_plugin_get_name (self),
|
mm_plugin_get_name (self),
|
||||||
vendor,
|
vendor,
|
||||||
product));
|
product,
|
||||||
|
subsystem_vendor));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -87,9 +88,13 @@ create_modem (MMPlugin *self,
|
|||||||
G_MODULE_EXPORT MMPlugin *
|
G_MODULE_EXPORT MMPlugin *
|
||||||
mm_plugin_create (void)
|
mm_plugin_create (void)
|
||||||
{
|
{
|
||||||
static const gchar *subsystems[] = { "tty", "net", "usbmisc", NULL };
|
static const gchar *subsystems[] = { "tty", "net", "usbmisc", "wwan", NULL };
|
||||||
/* Vendors: Telit */
|
/* Vendors: Telit */
|
||||||
static const guint16 vendor_ids[] = { 0x1bc7, 0 };
|
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 };
|
static const gchar *vendor_strings[] = { "telit", NULL };
|
||||||
/* Custom init for port identification */
|
/* Custom init for port identification */
|
||||||
static const MMAsyncMethod custom_init = {
|
static const MMAsyncMethod custom_init = {
|
||||||
@@ -102,6 +107,7 @@ mm_plugin_create (void)
|
|||||||
MM_PLUGIN_NAME, MM_MODULE_NAME,
|
MM_PLUGIN_NAME, MM_MODULE_NAME,
|
||||||
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
|
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
|
||||||
MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
|
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_VENDOR_STRINGS, vendor_strings,
|
||||||
MM_PLUGIN_ALLOWED_AT, TRUE,
|
MM_PLUGIN_ALLOWED_AT, TRUE,
|
||||||
MM_PLUGIN_ALLOWED_QMI, TRUE,
|
MM_PLUGIN_ALLOWED_QMI, TRUE,
|
||||||
|
Reference in New Issue
Block a user