diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-16 22:20:33 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-17 15:19:50 +0200 |
commit | 56387bb79c3ed4d24f55be7016f2ac6133401fc3 (patch) | |
tree | 54291c9f52ca1453d14f3749da2d2cad395578cc | |
parent | 99694dec93f8903591927e89e8718db099e4f9ba (diff) | |
download | ModemManager-56387bb79c3ed4d24f55be7016f2ac6133401fc3.tar.gz |
sierra: allow MBIM modems handled by the plugin
-rw-r--r-- | plugins/sierra/mm-plugin-sierra.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/sierra/mm-plugin-sierra.c b/plugins/sierra/mm-plugin-sierra.c index 3d4ab7a31..fc39b76e9 100644 --- a/plugins/sierra/mm-plugin-sierra.c +++ b/plugins/sierra/mm-plugin-sierra.c @@ -31,6 +31,10 @@ #include "mm-broadband-modem-qmi.h" #endif +#if defined WITH_MBIM +#include "mm-broadband-modem-mbim.h" +#endif + G_DEFINE_TYPE (MMPluginSierra, mm_plugin_sierra, MM_TYPE_PLUGIN) int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION; @@ -226,6 +230,17 @@ create_modem (MMPlugin *self, } #endif +#if defined WITH_MBIM + if (mm_port_probe_list_has_mbim_port (probes)) { + mm_dbg ("MBIM-powered Sierra modem found..."); + return MM_BASE_MODEM (mm_broadband_modem_mbim_new (sysfs_path, + drivers, + mm_plugin_get_name (self), + vendor, + product)); + } +#endif + if (sierra_port_probe_list_is_icera (probes)) return MM_BASE_MODEM (mm_broadband_modem_sierra_icera_new (sysfs_path, drivers, @@ -288,6 +303,7 @@ mm_plugin_create (void) MM_PLUGIN_ALLOWED_AT, TRUE, MM_PLUGIN_ALLOWED_QCDM, TRUE, MM_PLUGIN_ALLOWED_QMI, TRUE, + MM_PLUGIN_ALLOWED_MBIM, TRUE, MM_PLUGIN_CUSTOM_INIT, &custom_init, MM_PLUGIN_ICERA_PROBE, TRUE, MM_PLUGIN_REMOVE_ECHO, FALSE, |