summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* telit: fix g_object_unref failed assertionmasterDaniele Palmas2021-09-291-1/+2
| | | | | | | | | Fix the following g_object_unref failed assertion: ModemManager[385967]: <debug> [1632924639.132023] [modem0/ttyUSB2/at] --> 'AT+CSIM=1<CR>' ModemManager[385967]: <debug> [1632924639.144892] [modem0/ttyUSB2/at] <-- '<CR><LF>ERROR<CR><LF>' ModemManager[385967]: <debug> [1632924639.145021] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error) (ModemManager:385967): GLib-GObject-CRITICAL **: 16:10:39.145: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
* sms: increase send timeout to 5 minutesBenoît Monin2021-09-231-1/+1
| | | | | | | | | | | | The timeout for sms send operation can exceed the current value, so increase it to 5 minutes. Timeouts up to 4 minutes have been observed in the following test scenario: * Power up the modem and wait for registration. * Right when the modem is registered, attenuate the rf signal or remove the antenna. * Immediately try to send an sms. Increasing the timeout cover this corner case.
* modem-qmi,sim-qmi: read personalization retries from Card StatusMichal Mazur2021-09-214-4/+14
|
* modem-mbim: enter LOCKED state when SIM is incompatibleMichal Mazur2021-09-211-9/+17
| | | | | | | According to MBIM specification, the subscriber state is INITIALIZED when SIM card is incompatible with enabled modem personalization lock. This patch introduce additional check for enabled PIN lock in such case and fixes depersonalization of one lock if several are enabled.
* .gitignore: ignore ctags tags fileYegor Yefremov2021-09-201-0/+1
|
* Fix -Wmaybe-uninitialized warningYegor Yefremov2021-09-191-1/+1
| | | | | Initialize the scheme variable to QMI_VOICE_USS_DATA_CODING_SCHEME_UNKNOWN to avoid the warning.
* sim-mbim: always close UICC channel, even on errorAleksander Morgado2021-09-191-40/+50
| | | | | Don't close the UICC channel only when the EID was successfully load. If for any reason it failed, also close the channel.
* sim-mbim: coding style fixes in the EID loadingAleksander Morgado2021-09-191-112/+108
|
* sim-mbim: add support for loading eid via mbim protocolSom_SP2021-09-197-19/+278
| | | | | Support is added to set eid dbus interface property using MBIM protocol when the inserted sim is esim.
* Tests: fix -Wformat compiler warningYegor Yefremov2021-09-171-1/+1
| | | | Use G_GUINT64_FORMAT to properly format a guint64 type.
* build: enable qcom-soc plugin by defaultShawn Guo2021-09-172-2/+2
| | | | | | | | | As people are running distros like Debian, Archlinux, Fedora, etc., on laptops powered by Qualcomm Snapdragon SoCs, e.g. Lenovo Yoga C630, it makes sense to enable qcom-soc plugin by default, so that MM aarch64 package can be built by those distros more easily. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* ci: add meson build testAleksander Morgado2021-09-161-1/+36
| | | | | | | | | | | | | | | | The system template is updated to add new packages required at build time: * libdbus-1-dev is added so that we can autodetect the service directory path via the installed pkg-config file. * udev is added so that we can autodetect the udev rules directory path via the installed pkg-config file. * policykit-1 is added so that the i18n operation merging policy files is able to use the installed ITS files. * bash-completion is added to enable the feature in the meson build. The 'dist' step in the test is fully skipped for now, as the meson port doesn't fully support running all unit tests successfully.
* build,meson: simplify build of daemon enums sourcesAleksander Morgado2021-09-161-19/+19
|
* build,meson: introspection is setup as a featureAleksander Morgado2021-09-151-1/+1
|
* Revert "build,meson: Improve plugins option set"Aleksander Morgado2021-09-152-109/+147
| | | | | | This reverts commit 09a5052a777c858b83baf9444306775ed5c50300. This commit breaks the default disabling of the qcom-soc plugin.
* meson,build: don't include daemon enum sources in pluginsAleksander Morgado2021-09-151-5/+5
| | | | | | | | | | | | | | | | | | | We will end up exporting what we shouldn't: $ abidiff /tmp/autotools/lib/ModemManager/libmm-shared-icera.so /tmp/meson/lib/ModemManager/libmm-shared-icera.so Functions changes summary: 0 Removed, 0 Changed (3 filtered out), 8 Added functions Variables changes summary: 0 Removed, 0 Changed, 0 Added variable 8 Added functions: [A] 'function const gchar* mm_bearer_connection_status_get_string(MMBearerConnectionStatus)' {mm_bearer_connection_status_get_string} [A] 'function GType mm_bearer_connection_status_get_type()' {mm_bearer_connection_status_get_type} [A] 'function const gchar* mm_bearer_status_get_string(MMBearerStatus)' {mm_bearer_status_get_string} [A] 'function GType mm_bearer_status_get_type()' {mm_bearer_status_get_type} [A] 'function gchar* mm_filter_rule_build_string_from_mask(MMFilterRule)' {mm_filter_rule_build_string_from_mask} [A] 'function GType mm_filter_rule_get_type()' {mm_filter_rule_get_type} [A] 'function gchar* mm_port_probe_flag_build_string_from_mask(MMPortProbeFlag)' {mm_port_probe_flag_build_string_from_mask} [A] 'function GType mm_port_probe_flag_get_type()' {mm_port_probe_flag_get_type}
* build,meson: fix building shared utils and pluginsAleksander Morgado2021-09-151-71/+78
| | | | | | | | | | | | When building shared utils modules or plugins, we should not link with the static libraries built under src/, because that would mean we're including their symbols as exported by the modules, and it'll break in runtime. Instead, just define the correct set of 'include_directories' to be used in each plugin. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/436
* build,meson: rename plugin helpers library variableAleksander Morgado2021-09-151-4/+4
| | | | | So that we don't confuse the plugin-specific libhelpers with the core libhelpers built in src/.
* novatel: avoid returning a NULL timezone without error setAleksander Morgado2021-09-151-1/+1
| | | | | | | Reported and fix suggested by: Frederic Martinsons <frederic.martinsons@sigfox.com> Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/438
* build,meson: make PLUGINDIR an absolute pathAleksander Morgado2021-09-151-1/+1
| | | | Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/433
* ci: Use feature values for libqmi, libmbim and libqrtr-glibAleksander Morgado2021-09-131-11/+11
| | | | | `libmbim`, `libqmi` and `libqrtr-glib` have started using `feature` options in their meson builds.
* introspection,sar: new interface introduced for 1.20Aleksander Morgado2021-09-101-4/+4
|
* build,meson: add Sar interfaceAleksander Morgado2021-09-101-0/+1
|
* Revert "api: remove Modem.Sar interface"Aleksander Morgado2021-09-108-0/+187
| | | | This reverts commit 686e37ff84daca6096fe18781ad9ba6f29cd4063.
* build,meson: Improve plugins helper library buildingIñigo Martínez2021-09-101-7/+5
| | | | | | | | To avoid those cases where a plugin does not need a helper library an empty array is created. However, when a helper library has to be built, it is not necessary to include the created static library in an array.
* build,meson: Fix libmm-test-common name and dependenciesIñigo Martínez2021-09-101-3/+2
| | | | | | | | `libmm-test-common` is created using underscores. It also uses `gio-unix-2.0` as a public dependency but actually it should be private. Both issues have been fixed.
* build,meson: Fix suspend/resume optionIñigo Martínez2021-09-101-1/+1
| | | | | | | | | The suspend/resume option does not build properly if journal option is disabled. This is beacause the journal option is check to add suspend/resume code. It has been fixed by replacing journal option check by the suspend/resume option.
* build,meson: Fix libsystemd checkIñigo Martínez2021-09-101-11/+14
| | | | | | | | At the moment `libsystemd` is check even if `suspend/resume` and systemd support are not enabled. This has been changed so `libsystemd` is checked only if any or both options are enabled.
* build,meson: Improve libqcdm buildIñigo Martínez2021-09-102-11/+2
| | | | | `libqcdm`'s meson build files have been improved slightly by removing unnecessary variables shortening their contents.
* build,meson: Make use of feature option for introspectionIñigo Martínez2021-09-101-4/+1
|
* build,meson: Remove unnecessary variablesIñigo Martínez2021-09-101-3/+0
|
* build,meson: Improve plugins option setIñigo Martínez2021-09-102-147/+109
| | | | Improved the way the plugins are set to allow a smaller summary.
* build,meson: Make use of the summary functionIñigo Martínez2021-09-101-75/+84
| | | | | | | | | Since meson 0.53 it has added a new function to summarize the build configuration[0]. We changed the summary to make use of it. [0] https://mesonbuild.com/Release-notes-for-0-53-0.html#add-a-new-summary-function
* core: remove execution bit from file modes in source filesAleksander Morgado2021-09-103-0/+0
|
* build: post-release version bump to 1.19.0Aleksander Morgado2021-09-092-2/+2
|
* release: bump to 1.18.01.18.0Aleksander Morgado2021-09-082-7/+7
|
* NEWS: update for 1.18 with changes since rc1Aleksander Morgado2021-09-081-4/+21
|
* build: require libqmi 1.30.2Aleksander Morgado2021-09-083-3/+3
| | | | We need the new "Get All Call Info" request support.
* build,meson: add sms-c examples to buildAleksander Morgado2021-09-082-0/+18
|
* examples: new SMS sending example in C using the async APIAleksander Morgado2021-09-083-2/+224
|
* examples: new SMS sending example in C using the sync APIAleksander Morgado2021-09-085-2/+179
|
* broadband-modem-qmi: don't error out on empty call listAleksander Morgado2021-09-081-4/+9
| | | | Only error out if the required TLVs are missing.
* iface-modem-voice: avoid warning with -Wincompatible-pointer-typesAleksander Morgado2021-09-081-1/+1
| | | | | | | | | | ../src/mm-iface-modem-voice.c: In function ‘mm_iface_modem_voice_reload_all_calls’: ../src/mm-iface-modem-voice.c:2549:64: warning: passing argument 2 of ‘((MMIfaceModemVoice *)g_type_interface_peek((void *)((GTypeInstance *)self)->g_class, mm_iface_modem_voice_get_type()))->load_call_list’ from incompatible pointer type [-Wincompatible-pointer-types] 2549 | reload_all_calls_ready, | ^~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(MMIfaceModemVoice *, GAsyncResult *, GTask *) {aka void (*)(struct _MMIfaceModemVoice *, struct _GAsyncResult *, struct _GTask *)} ../src/mm-iface-modem-voice.c:2549:64: note: expected ‘GAsyncReadyCallback’ {aka ‘void (*)(struct _GObject *, struct _GAsyncResult *, void *)’} but argument is of type ‘void (*)(MMIfaceModemVoice *, GAsyncResult *, GTask *)’ {aka ‘void (*)(struct _MMIfaceModemVoice *, struct _GAsyncResult *, struct _GTask *)’}
* broadband-modem-qmi: refactor process_get_all_call_info() to avoid handling ↵Aleksander Morgado2021-09-081-11/+16
| | | | | | | | | | | | the GTask The process_get_all_call_info() was not completing the input GTask on every possible code path (e.g. when remote party number or call info wasn't available). The method is now updated to avoid processing the GTask itself, instead it will attempt to build the call list and return a GError on any kind of failure.
* mm-broadband-modem-qmi: add AT URCs fall back for callsDylan Van Assche2021-09-084-5/+356
| | | | | | | | | | | | | | | Enable AT URCs for calls on top of QMI Voice indications for AT+QMI devices only. Some AT+QMI devices send unreliable QMI indications when the host is resuming. In such cases, AT URCs can be used as a fall back to make calls reliable. While AT+QMI devices relied before on AT commands to load call list information and handle AT URCs for async updates, this is now handled through QMI by forcefully reloading the call list instead of processing the AT URCs. This approach is disabled by default through the MM_IFACE_MODEM_VOICE_INDICATION_CALL_LIST_RELOAD_ENABLED property. This property is set to true in case of QMI modems.
* mm-modem-helpers: only parse calls in voice modeDylan Van Assche2021-09-082-0/+49
| | | | | Calls in a CLCC response in data-only or fax-only mode do not count as actuall calls.
* build,meson: add missing Call object support in introspectionAleksander Morgado2021-09-072-15/+7
|
* build,autotools: add missing Call object support in introspectionAleksander Morgado2021-09-071-0/+2
|
* test,lsudev: add attribute format to println()Aleksander Morgado2021-09-071-4/+3
| | | | | | | ../test/lsudev.c: In function ‘println’: ../test/lsudev.c:68:5: warning: function ‘println’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 68 | g_string_append_vprintf (output, fmt, args); | ^~~~~~~~~~~~~~~~~~~~~~~
* libmm-glib,location-3gpp: remove unused variableAleksander Morgado2021-09-071-1/+0
| | | | | | | ../libmm-glib/mm-location-3gpp.c: In function ‘mm_location_3gpp_new_from_string_variant’: ../libmm-glib/mm-location-3gpp.c:400:16: warning: unused variable ‘operator_code’ [-Wunused-variable] 400 | gchar *operator_code; | ^~~~~~~~~~~~~