diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-02-20 19:01:10 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-02-20 19:03:52 +0100 |
commit | 5560a239e7f27d1b79967fa4b5d2d7b1f6125674 (patch) | |
tree | 40b8b4c4178c8528e4e98774eb1448369075b163 | |
parent | 35d84ac840dca47ae4bcca54d8ce4fed764be8b4 (diff) | |
download | ModemManager-aleksander/telit-mbim-xmm.tar.gz |
telit: enable XMM features in MBIM capable devicesaleksander/telit-mbim-xmm
-rw-r--r-- | plugins/Makefile.am | 11 | ||||
-rw-r--r-- | plugins/telit/mm-plugin-telit.c | 11 |
2 files changed, 19 insertions, 3 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 17a21a0d4..59a13128e 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -881,9 +881,16 @@ libmm_plugin_telit_la_SOURCES = \ telit/mm-plugin-telit.c \ telit/mm-plugin-telit.h \ $(NULL) -libmm_plugin_telit_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(PLUGIN_TELIT_COMPILER_FLAGS) +libmm_plugin_telit_la_CPPFLAGS = \ + $(PLUGIN_COMMON_COMPILER_FLAGS) \ + $(XMM_COMMON_COMPILER_FLAGS) \ + $(PLUGIN_TELIT_COMPILER_FLAGS) \ + $(NULL) libmm_plugin_telit_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) -libmm_plugin_telit_la_LIBADD = $(TELIT_COMMON_LIBADD_FLAGS) +libmm_plugin_telit_la_LIBADD = \ + $(XMM_COMMON_LIBADD_FLAGS) \ + $(TELIT_COMMON_LIBADD_FLAGS) \ + $(NULL) dist_udevrules_DATA += telit/77-mm-telit-port-types.rules diff --git a/plugins/telit/mm-plugin-telit.c b/plugins/telit/mm-plugin-telit.c index 8e1262129..2ce3f3e23 100644 --- a/plugins/telit/mm-plugin-telit.c +++ b/plugins/telit/mm-plugin-telit.c @@ -28,13 +28,13 @@ #include "mm-common-telit.h" #include "mm-broadband-modem-telit.h" - #if defined WITH_QMI # include "mm-broadband-modem-qmi.h" #endif #if defined WITH_MBIM # include "mm-broadband-modem-mbim.h" +# include "mm-broadband-modem-mbim-xmm.h" #endif G_DEFINE_TYPE (MMPluginTelit, mm_plugin_telit, MM_TYPE_PLUGIN) @@ -66,6 +66,14 @@ create_modem (MMPlugin *self, #if defined WITH_MBIM if (mm_port_probe_list_has_mbim_port (probes)) { + if (mm_port_probe_list_is_xmm (probes)) { + mm_dbg ("MBIM-powered XMM-based modem found..."); + return MM_BASE_MODEM (mm_broadband_modem_mbim_xmm_new (uid, + drivers, + mm_plugin_get_name (self), + vendor, + product)); + } mm_dbg ("MBIM-powered Telit modem found..."); return MM_BASE_MODEM (mm_broadband_modem_mbim_new (uid, drivers, @@ -106,6 +114,7 @@ mm_plugin_create (void) MM_PLUGIN_ALLOWED_AT, TRUE, MM_PLUGIN_ALLOWED_QMI, TRUE, MM_PLUGIN_ALLOWED_MBIM, TRUE, + MM_PLUGIN_XMM_PROBE, TRUE, MM_PLUGIN_CUSTOM_INIT, &custom_init, NULL)); } |