aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-01modem-helpers: ip family normalization doesn't need log_objectAleksander Morgado
2021-03-31base-bearer: remove default IP family propertyAleksander Morgado
There is no point in providing a configurable default IP family in the bearer object, because we can always assume IPv4 as being the only default expected. Simplify the logic and also provide a new method to get the normalize the IP family, using IPv4 as default always.
2021-03-31cinterion: remove unused checkup of default IP familyAleksander Morgado
Looks like the logic is just there to write a debug log, as the selected IP family is not used anywhere else. Just remove this.
2021-03-31shared-qmi: Fix crash when a hotswap occurs while loading slotsPavan Holla
2021-03-31port-serial: remove misleading commentsAleksander Morgado
2021-03-31port-serial: the 'FlashOk' property is not really set on constructAleksander Morgado
2021-03-31mmtty: new --spew-control optionAleksander Morgado
So that we simulate enabling the spew control, as we do during probing.
2021-03-31mmtty: allow enabling LF with --send-lfAleksander Morgado
2021-03-31mmtty: fix printing logs with --verboseAleksander Morgado
The _mm_log() implementation provided in 'mm-log-test.h' relies on g_test_verbose() to decide whether the logs are printed or not. We are not running under the GTest setup in mmtty, so that would not work properly. Just provide a custom _mm_log() method that checks for the verbose_flag instead.
2021-03-31mmtty: make sure \r\n is removed from the user lineAleksander Morgado
2021-03-24iface-modem: avoid check for SIM swap if no interface skeleton availableAleksander Morgado
2021-03-24iface-modem: avoid lock info update if no interface skeleton availableAleksander Morgado
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/351
2021-03-24cli,3gpp-ussd: move actions to a separate source fileAleksander Morgado
All the USSD operations together in a separate file, as they're managed in a separate 3GPP USSD interface.
2021-03-24docs,libmm-glib: move USSD to its own sectionAleksander Morgado
It's not a generic interface, it's a feature interface, same as messaging or location.
2021-03-24docs: explicitly ignore .actions filesAleksander Morgado
These are generated by gtk-doc.
2021-03-24broadband-modem: don't warn enabling/disabling USSD failuresAleksander Morgado
USSD is a feature interface, not critical for connection management, so skip warning on interface enabling/disabling failures.
2021-03-24libmm-glib,bearer-properties: fix 'allowed-auth' comparisonAleksander Morgado
2021-03-23build: require libgudev 232 to include autoptr supportAleksander Morgado
The code in git master already relies on autoptr support in GUdev types, which was introduced in commit 272533131c6ed38479a88805, included in libgudev 232. See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/349
2021-03-23api,bearer: minor alignment fixAleksander Morgado
2021-03-23api: add 'Since' tagsAleksander Morgado
These are not actively used by gdbus-codegen or gtk-doc, but they're helpful anyway so that users know when a given API method was introduced.
2021-03-23docs,libmm-glib: add low-level SAR interface referenceAleksander Morgado
2021-03-23docs,libmm-glib: add missing reference to mm_sim_preferred_network_list_free()Aleksander Morgado
2021-03-23docs,api: include missing reference to the SAR interfaceAleksander Morgado
2021-03-23build: add support for the new SAR interfaceAleksander Morgado
Include the new SAR interface in the build so that gdbus-codegen generates support for it in libmm-glib as well as proper documentation in the API reference.
2021-03-23api,sar: improve documentation and add example of SAR mapping tableAleksander Morgado
2021-03-23api,sar: add D-Bus interface to support SARMadhav
Add a new D-Bus interface to support dynamic SAR across multiple platforms. The new interface exposes methods to configure sar power levels, handle the communications with the modem, and let the platform code be agnostic to modem type.
2021-03-22api: define bearer settings only in the 'Properties' propertyAleksander Morgado
Avoid defining them multiple times in the Modem.CreateBearer(), Simple.Connect() and Modem3gpp.SetInitialEpsBearerSettings() methods.
2021-03-21cinterion: make sure FALSE sets GError in parse_smong_response()Aleksander Morgado
The g_regex_match_full() method may return FALSE without setting the GError, so that case needs to be considered. In addition to that, the following g_assert() was not doing what it should have been, as it was comparing the address of the variable and not the variable itself; rework the code to avoid that as well: g_assert (access_tech != MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN);
2021-03-21cinterion: make sure FALSE sets GError in provcfg_response_to_cid()Aleksander Morgado
The g_regex_match_full() method may return FALSE without setting the GError, so that case needs to be considered. Reported by Jan Mazura. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/347
2021-03-21cinterion: allow '*' in Prov/Cfg responseAleksander Morgado
E.g. in a Cinterion PLS8-E (REVISION 04.004) to match the following line: ^SCFG: "MEopMode/Prov/Cfg","fallback*" Fix suggested by Jan Mazura. See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/347
2021-03-21quectel: ignore QGPSURCDylan Van Assche
QGPSURCs are not ignored and causes calls to be rejected in some cases
2021-03-18kernel-device-helpers: Remove unused variableAndrew Lassalle
2021-03-18base-modem: plug leaks when organizing portsAleksander Morgado
The GLists maintained in the logic need to be explicitly freed (just the lists, not the list contents) if we exit early on error or if we end up deciding that the specific ports are available but unsupported by the plugin (e.g. if a plugin that doesn't support net ports finds net ports in the modem). ==225333== 24 bytes in 1 blocks are definitely lost in loss record 2,024 of 5,525 ==225333== at 0x483E77F: malloc (vg_replace_malloc.c:307) ==225333== by 0x506C539: g_malloc (in /usr/lib/libglib-2.0.so.0.6600.7) ==225333== by 0x508DC8F: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6600.7) ==225333== by 0x50636B4: g_list_append (in /usr/lib/libglib-2.0.so.0.6600.7) ==225333== by 0x17E671: mm_base_modem_organize_ports (mm-base-modem.c:1298) ==225333== by 0x1E4409: mm_plugin_create_modem (mm-plugin.c:1094) ==225333== by 0x162C81: mm_device_create_modem (mm-device.c:481) ==225333== by 0x15DE60: device_support_check_ready (mm-base-manager.c:218) ==225333== by 0x4EA8173: ??? (in /usr/lib/libgio-2.0.so.0.6600.7) ==225333== by 0x4EAC6E8: ??? (in /usr/lib/libgio-2.0.so.0.6600.7) ==225333== by 0x16730F: device_context_run_ready (mm-plugin-manager.c:1533) ==225333== by 0x4EA8173: ??? (in /usr/lib/libgio-2.0.so.0.6600.7)
2021-03-18po: update Hungarian translationBalázs Úr
2021-03-17base-bearer: ignore forced disconnectionsAleksander Morgado
If using PPP, ModemManager is never in charge of deciding when the connection is finished, because that would end up making ModemManager try to use the TTY port while pppd is still using it. When the modem goes unregistered for some time, we should not force the disconnection of the bearer object, we still need to wait for pppd to tell us the modem is disconnected. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/331
2021-03-17bearer-mbim: if no explicit 'multiplex' setting, treat as 'requested'Aleksander Morgado
2021-03-17broadband-modem-mbim: report up to 256 multiplexed bearersAleksander Morgado
As defined in the MBIM protocol (session id 0 to 255).
2021-03-17bearer-mbim: implement multiplex supportAleksander Morgado
2021-03-17port-mbim: implement new link setup/cleanup methodsAleksander Morgado
These are really wrappers around the MbimDevice methods, only making sure the MMPortMbim is open before they're used.
2021-03-17bearer-mbim: session id 0 by default in all non-multiplexed connectionsAleksander Morgado
The original logic in the MBIM modem would assume that if we had more than one network interface in the same modem, we could connect multiple data interfaces, each one with a different session. That logic is actually wrong, when using the master (non-multiplexed) network interface we should always use session id 0, which is the one holding all non-VLAN-tagged traffic. So, remove the logic that automatically creates new bearers with a different session id, as that is really wrong.
2021-03-17bearer-mbim: refactor and switch to autoptrAleksander Morgado
Also, keep track of the MMPortMbim instead of the MbimDevice directly, because the new multiplex support will require operations on the port as well, not only on the device.
2021-03-17broadband-modem-mbim: reset all net ports during initializationAleksander Morgado
We want to start with the data ports as clean as possible when the modem is initialized, so we make sure the master interface is down and that all links found are removed. This ensures a clean restart if e.g. the daemon crashes for some other reason.
2021-03-17port-mbim: implement port reset logicAleksander Morgado
2021-03-17build: require libmbim 1.25.2 for multiplex supportAleksander Morgado
2021-03-16mm-base-manager: split assertionEric Caruso
This allows us to know which of the subsystem or name for a removed device is triggering the assertion from just a stack trace that contains line information.
2021-03-15shared-qmi: acquisition order preference TLV always same itemsAleksander Morgado
The acquisition order preference TLV must always have the same number of elements, just the order of the elements should be different. Also, always prefer the acquisition order preference TLV to the GSM+WCDMA specific one, which is the same logic the modem applies. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/340
2021-03-15shared-qmi: process all feature checks in SSP response togetherAleksander Morgado
Loading capabilities is the very first step of the state machines, and so we can rely on the "NAS Get SSP" method performed there to process all feature checks of the SSP response.
2021-03-15shared-qmi: if getting TP/SSP fails, assume unsupportedAleksander Morgado
Until now we were only considering TP/SSP unsupported if we received a QMI protocol error (e.g. reporting unknown command). We now also consider TP/SSP unsupported if the actual request succeeds, but an error is reported in the response. There is no point in considering TP/SSP supported if the plain get request without input TLVs given fails.
2021-03-15shared-qmi: add missing feature check flag initialization to UNKNOWNAleksander Morgado
2021-03-15shared-qmi: rename feature check variablesAleksander Morgado
We want the "extended_lte_band_preference" with the "nas_ssp" prefix, as we're going to add more checks for SSP features.