Commit Graph

8370 Commits

Author SHA1 Message Date
Aleksander Morgado
4fa773d234 iface-modem: improve logging of user request to delete bearer 2022-11-04 13:12:57 +00:00
Aleksander Morgado
aed53fe30a iface-modem: improve logging of user request to run AT command 2022-11-04 13:12:57 +00:00
Aleksander Morgado
ac28a6a1c0 iface-modem: improve logging of user request to set current capabilities 2022-11-04 13:12:57 +00:00
Aleksander Morgado
9840818766 iface-modem: improve logging of user request to create bearer 2022-11-04 13:12:56 +00:00
Aleksander Morgado
f98bcd5f58 iface-modem: refactor user request to list bearers 2022-11-04 13:12:56 +00:00
Aleksander Morgado
f1fa2eb81e iface-modem: improve logging in INFO level 2022-11-04 13:12:56 +00:00
Aleksander Morgado
e7b225ab9a log-helpers: add helper to log simple connect properties 2022-11-04 13:12:56 +00:00
Aleksander Morgado
f509e68fa3 log-helpers: add helper to log 3gpp profile 2022-11-04 13:12:56 +00:00
Aleksander Morgado
8b6dc28ee7 log-helpers: add helper to log bearer properties 2022-11-04 13:12:56 +00:00
Aleksander Morgado
5bfa677bbc libmm-glib,simple-connect-properties: new print() method 2022-11-04 13:12:56 +00:00
Aleksander Morgado
46af452487 libmm-glib,bearer-properties: new print() method 2022-11-04 13:12:56 +00:00
Aleksander Morgado
a114e131ab libmm-glib,3gpp-profile: new print() method
Can be used right away in the mmcli output generation logic.
2022-11-04 13:12:56 +00:00
Aleksander Morgado
0e6660025e libmm-glib,common: add helpers to build printable strings 2022-11-04 13:12:56 +00:00
Aleksander Morgado
e6dcebf999 log: allow querying whether personal info should be shown or not
We need this when building printable representations of helper types
like the MMBearerProperties object.
2022-11-04 13:12:56 +00:00
Aleksander Morgado
3592d98e5b log: new methods to check if a given logging level is enabled
There are certain cases where we perform a lot of data processing just
for logging purposes. Having methods that let us know whether a given
log level will be printed before doing all that data processing is useful.
2022-11-04 13:12:56 +00:00
Aleksander Morgado
afb89bb78f log: new mm_obj_log() that allows specifying level explicitly 2022-11-04 13:12:56 +00:00
Aleksander Morgado
f19aa4d99a log: new helper to allow printing or hiding personal info 2022-11-04 13:12:56 +00:00
Aleksander Morgado
ddfdbf66f6 core,log: reduce the log level tag to 3 characters
Just to make all of them the same avoid needing extra whitespaces just
for alignment of the text after this tag.
2022-11-04 13:12:56 +00:00
Aleksander Morgado
b3f315ad2d core,log: new 'MSG' log level between 'INFO' and 'WARN'
We're bumping the current "INFO" level messages to the new "MSG"
level, also making the new level the default.

The old "INFO" level will be used to setup an intermediate level of
logging which is not as verbose as "DEBUG" but still provides some
capabilities to analyze the behavior of a modem.
2022-11-04 13:12:56 +00:00
Aleksander Morgado
823f3e7995 base-sim: fix length when reading GID1/GID2
We were attempting to read 15 bytes unconditionally, regardless of the
size of the EF_gid1 and EF_gid2 files.

This operation would succeed in some SIM cards even if the actual file
lengths are shorter:

  AT+CRSM=176,28478,0,0,15
  +CRSM: 144,0,"FFFF"
  OK

But the operation would fail in some other SIM cards due to the length
mismatch:

  AT+CRSM=176,28478,0,0,15
  +CRSM: 103,0
  OK

Using 0 as requested length instructs the modem to read the length
specified in the EF status information, which is also the same
approach we do in QMI and MBIM.

  AT+CRSM=176,28478,0,0,0
  +CRSM: 144,0,"FFFF"
  OK
2022-11-03 23:42:48 +00:00
Evangelos Ribeiro Tzaras
4bb601dd2f iface-modem-3gpp-profile-manager: Initialize autofreed string to NULL
This avoids compiler warnings when using -Wmaybe-uninitialized

Closes: #653
2022-11-01 14:09:32 +01:00
Evangelos Ribeiro Tzaras
c7afdc5375 build: Warn about potentially uninitialized variables 2022-11-01 13:16:11 +01:00
Arnaud Ferraris
db10975bb8 build-aux: templates: make build reproducible
By including `@filename@` in the enums/errors types header template, we
generate files containing the full path to source files, which reflects
the particular filesystem layout used for a given build. As such, this
alters build reproducibility as it causes a (admittedly small) diff
between builds executed in different environments.

Using `@basename@` instead ensures only the file name (without its full
path) is mentioned in the generated files, making the builds
reproducible again.
2022-10-29 11:14:46 +02:00
Aleksander Morgado
82fd4a4bbc build: post-release version bump to 1.21.0 2022-10-27 20:14:41 +00:00
Aleksander Morgado
d4fcb2a57c release: bump version to 1.20.0 2022-10-27 20:03:33 +00:00
Aleksander Morgado
1532545efa base-sim: fix loading GID2
We were not even trying to load it if GID1 was successfully loaded.
2022-10-27 11:22:16 +02:00
Aleksander Morgado
1bc9df2a08 sim-mbim: read exact GID1/GID2 file size 2022-10-27 11:22:16 +02:00
Akash Aggarwal
cce9ba475d mm-broadband-modem-qmi: do not set "enable refresh" in PDC "register" QMI message
If "enable refresh" is set, QMI modem expects an acknowledgement upon receiving a PDC refresh indication,
otherwise the modem resets assuming clients are facing an issue in refreshing their cache.

Register for PDC refresh indication without setting "enable refresh" TLV.
We would still receive the refresh indication to notify that the list of profiles stored has changed and
would not have to acknowledge the modem.
2022-10-27 11:07:07 +05:30
Aleksander Morgado
6711cdbbf5 build: require libqmi 1.32.0 and libmbim 1.28.0 2022-10-26 13:27:00 +00:00
Aleksander Morgado
ec28c85a6a build: bump version to 1.19.900 (1.20-rc1) 2022-10-19 11:25:33 +00:00
Aleksander Morgado
72f72d0bfd NEWS: update for 1.20.0 2022-10-19 11:18:38 +00:00
Aleksander Morgado
decf2370db AUTHORS: update for 1.20 2022-10-19 11:18:38 +00:00
Aleksander Morgado
4eb6a39654 RELEASING: update to use meson based steps 2022-10-19 11:18:38 +00:00
Aleksander Morgado
c73cbcc309 core: update copyright years 2022-10-19 11:18:38 +00:00
Aleksander Morgado
68123ac875 mmcli: update copyright years 2022-10-19 11:18:38 +00:00
Aleksander Morgado
fff4b95364 docs,reference: update copyright years 2022-10-19 11:18:38 +00:00
Akash Aggarwal
034383a650 broadband-modem-qmi: support for setting up signal thresholds 2022-10-18 15:54:37 +05:30
Alexey Orishko
1c4ba76295 plugin, telit: set last band to EUTRAN_85
Modems based on MDM9205 chipset support LTE Band 85, thus last define
was changed to reflect that band
2022-10-17 10:39:20 +00:00
Alexey Orishko
8ecc0f64e4 plugin, telit: add support for LPWA modem
- properly identity access technology for Cat-M and NB-IoT RATs
2022-10-17 10:39:20 +00:00
Fanice.luo
908ab33328 foxconn: updating the T77W968 requires MCFG+APPS version
updating T77W968(0x413c:0x81d7 ; 0x413c:0x81e0 ; 0x413c:0x81e4 ;
0x413c:0x81e6): supports FASTBOOT and QMI PDC, and requires MCFG+APPS
version.
2022-10-17 10:03:31 +00:00
Sven Schwermer
1ef46a6886 fibocom: Don't disconnect initial EPS bearer
During profile setup, the profile manager normally disconnects a profile
before re-using it. We do not want to do this for the initial EPS bearer
because that would trigger de-registration.

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2022-10-17 09:35:31 +00:00
Sven Schwermer
71a9739f1d fibocom: Set initial EPS bearer CID for MA510
Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2022-10-17 09:35:31 +00:00
Sven Schwermer
c509159dfe fibocom: Add initial EPS bearer support
Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2022-10-17 09:35:31 +00:00
Sven Schwermer
855977c4c7 fibocom: Implement power down/off
Also bump the timeout for the +CFUN operations as they may take up to
10s according to the AT command manual (e.g. MA510).

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2022-10-17 09:35:30 +00:00
Sven Schwermer
e5bb33a463 fibocom: Monitor connection status using +GTRNDIS?
In situations where the configured APN for the initial EPS bearer
(cid=1) does not match the APN for the actual connection, ModemManager
sets up a context (cid!=1) with the proper APN when connecting. If the
APN for the initial EPS bearer was not valid, the SIM may fall back to a
default one. If that default matches the APN for the proper connection,
the initial EPS bearer is re-used for the actual connection. In that
scenario, +CGACT? will report deactivated for the actual connection
context (cid!=1). ModemManager subsequently reports the connection as
disconnected.

+GTRNDIS? will always reflect the correct state for the context ID we
used to set up the ECM connection. Hence, it makes sense to use this
command to assess the connection status.

This has been tested with the MA510-GL modem module.

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2022-10-17 09:35:30 +00:00
Akash Aggarwal
04ed52a74c mm-iface-modem: always require a SIM card in 3GPP modules
Avoid removing 3GPP capabilities if sim is absent.
Transition to 'Failed' state for 3GPP capable devices if sim is absent.
2022-10-11 11:55:28 +05:30
Aleksander Morgado
ead9f1809f fcc-unlock: add FCC unlock support for Quectel EM05-G
Using the FCC unlock prepared and tested by:
 Leah Oswald <mail@leahoswald.de>,

Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/640
2022-10-10 12:09:28 +00:00
Fanice.luo
fab0481027 foxconn: remove QMI_SERVICE_FOX from Generic MBIM modem object
Allocate the fox_client to attempt loading the firmware info using
QMI_SERVICE_FOX,and release it when no longer needed.

Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/599
2022-10-10 11:46:57 +00:00
Jürgen Benvenuti
a93c1f6f19 i18n: Update German translation
Translated and proofread by the GNOME German translation team.
2022-10-10 08:21:02 +00:00
Aleksander Morgado
1db9cf4689 sms-part-3gpp: coding style fixes 2022-10-06 09:18:38 +00:00