Commit Graph
8998 Commits
Author SHA1 Message Date
Mank Wang d7dab1773d Netprisma: Add new plugin 2024-08-02 14:34:16 +00:00
Sebastian Krzyszkowiak 93c1e55d36 mm-iface-modem: Always check properties for disabling signal polling
MMBroadbandModemQmi only disables signal polling once it successfully
sets the indication up. To do that, it sets the properties on
MMIfaceModem. This, however, doesn't actually disable polling, as the
property values are only checked once in get_private when Private
structure hasn't been created yet. Once that happens, only the cached
values are ever checked, and there's nothing that would update them.

Since there's only one place where these properties are checked, get
rid of cached bools in Private structure and instead read the property
values directly in periodic_signal_check_step, letting QMI modems
actually disable polling at runtime.
2024-08-02 03:43:44 +02:00
Bolan Wang 388e8ea538 plugin,mtk: Add load_unlock_retries
This patch add load_unlock_retries support by AT in mtk-based Fibocom
modem.
2024-07-31 20:13:28 +00:00
Thomas Vogt 7312c86130 intel: mark XMM7360 as unsupported 2024-07-31 17:36:14 +00:00
Thomas Vogt c2e3a8c10e port-probe: detect XMMRPC ports 2024-07-31 17:36:14 +00:00
Michal Mazur 1c4f2320f1 broadband-modem-mbim: workaround for invalid SMS part index on L850
Fibocom L850 modems report an invalid part index (always 1) in the
response message. Because we know which message part was requested,
we can use that value instead to workaround this bug.
2024-07-31 17:30:15 +00:00
mank.wang 8cbd12a603 quectel: support at over mbim in quectel modems 2024-07-31 13:58:16 +00:00
Aleksander Morgado 14192af87e build: unstable release version bump to 1.23.9 2024-07-26 16:35:18 +00:00
lupuliang fc2886a3f9 rolling: Set RW101 AT port to ignore
MM does not need to use two AT ports at the same time.
Sending AT to both ports at the same time may cause the ports to not work.
2024-07-22 15:01:57 +00:00
Puliang Lu 4632af30a7 fibocom: Set FM101 AT port to ignore
MM does not need to use two AT ports at the same time.
Sending AT to both ports at the same time may cause the ports to not work.
2024-07-22 14:58:01 +00:00
Dan Williams 99b18fa863 man: fix line starting with ' and remove an extra .
Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/867

Thanks to John Veness
2024-07-17 11:39:53 -05:00
Lubomir Rintel 509acb6474 mmcli: fix a memory leak
Poor modem_uid got left behind.
2024-07-09 14:55:30 +00:00
Lubomir Rintel 664d748a93 ublox/helpers: fix propagation of +URAT response parse error
The fallback error handling branch happens much too late, just leaking the
newly made GError instead of propagating.
2024-07-09 14:55:30 +00:00
Lubomir Rintel 0365f9f0d8 Revert "ublox/helpers: fix propagation of +URAT response parse error"
Not quite correct -- with the patch applied, the newly allocated GError
could potentially overwrite inner_error that was set previously.

This reverts commit d550a24ffdae4492e9f9e18fdf294adcda28fb65.
2024-07-09 14:55:30 +00:00
Lubomir Rintel 26f36f79c9 build: bump libmbim dependency
Fibocom's MBIM support needs this:

  mm-port-mbim-fibocom.c: In function ‘iface_port_at_check_support’:
  mm-port-mbim-fibocom.c:64:66: error: ‘MBIM_SERVICE_FIBOCOM’ undeclared (first use in this function); did you mean ‘MBIM_SERVICE_GOOGLE’?
     64 |         if (!mm_port_mbim_supports_command (MM_PORT_MBIM (self), MBIM_SERVICE_FIBOCOM, MBIM_CID_FIBOCOM_AT_COMMAND)) {
        |                                                                  ^~~~~~~~~~~~~~~~~~~~
        |                                                                  MBIM_SERVICE_GOOGLE
  mm-port-mbim-fibocom.c:64:66: note: each undeclared identifier is reported only once for each function it appears in
  mm-port-mbim-fibocom.c:64:88: error: ‘MBIM_CID_FIBOCOM_AT_COMMAND’ undeclared (first use in this function)
     64 |         if (!mm_port_mbim_supports_command (MM_PORT_MBIM (self), MBIM_SERVICE_FIBOCOM, MBIM_CID_FIBOCOM_AT_COMMAND)) {
        |                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: c66a6b89ec ('fibocom: create custom MBIM port object with potential AT support')
2024-07-09 14:49:22 +00:00
Lubomir Rintel ad74320c05 qcdm: fix order of calloc() arguments
GCC 14 is unhappy. Not sure why does this matter, maybe it just does
not. Let's silence the warning at the very least:

  libqcdm/src/result.c: In function ‘val_new_string’:
  libqcdm/src/result.c:76:25: warning: ‘calloc’ sizes specified with
    ‘sizeof’ in the earlier argument and not in the later argument
    [-Wcalloc-transposed-args]
     76 |     v = calloc (sizeof (Val), 1);
        |                         ^~~
2024-07-08 12:37:12 +02:00
Aleksander Morgado 79b0696a74 Revert "fibocom: disable CPOL features in NL668"
This reverts commit f7b351fc85.

The whole AT over MBIM support is disabled in the NL668.
2024-06-21 10:00:36 +00:00
Aleksander Morgado 06ccd09bef fibocom: disable AT over MBIM in NL668
The AT over MBIM support is exposed as a supported service, but the
underlying implementation is not good enough.
2024-06-21 09:57:19 +00:00
Aleksander Morgado f7b351fc85 fibocom: disable CPOL features in NL668
Running +CPOL? in the NL668 using AT over MBIM seems to trigger a
firmware crash. Let's disable the feature altogether in this device
for this reason.
2024-06-19 13:16:43 +00:00
Aleksander Morgado 79ad16e32b build: unstable release version bump to 1.23.8 2024-06-14 09:16:08 +00:00
Ujjwal Pande a95c2d2ad9 broadband-modem-qmi: report network rejections
Changes to expose network rejections for QMI based modems.
2024-06-12 09:39:12 +00:00
Ujjwal Pande 4b615a2343 broadband-modem-mbim: report network rejections
Changes to expose network rejections for MBIM based modems.
2024-06-12 09:39:12 +00:00
Ujjwal Pande 2904510e76 api: new NetworkRejection property
When a modem is not able to register to the network, MBIM and QMI indications
related to registration reports network rejection cause codes if request is
rejected by the network. This information is currently logged in the ModemManager
but not exposed outside of ModemManager.
These are the changes to define interface to expose network reject cause codes
over d-bus to the above layers which could be used by above layers to present
this information in a user friendly way.
2024-06-12 09:39:12 +00:00
Lubomir Rintel df8287bf6c modem-helpers: do not leak past PDP on error
If CID parsing from the +CGDCONT response fails, the very last PDP
structure allocated is not put on the list yet and therefore
mm_3gpp_pdp_context_list_free() wouldn't free it.

Let's put it on the list first, as to not leak it on error.
2024-05-31 10:46:59 +00:00
Lubomir Rintel bd0551460b libmm-glib/signal: fix a copy'n'paste error 2024-05-31 10:46:59 +00:00
Lubomir Rintel 000acf4922 sim/qmi: do not leak access technology name 2024-05-31 10:46:59 +00:00
Lubomir Rintel 90824b3e87 bearer/qmi: fix a copy'n'paste error
Probably not a real issue, given if there's a password there's probably
an user name too.
2024-05-31 10:46:59 +00:00
Lubomir Rintel 6ca02a3edf mmcli/sms: do not leak message_reference 2024-05-31 10:46:59 +00:00
Lubomir Rintel 50937f5253 port-qmi: fix array bound check
There's an off-by-one error.
2024-05-31 10:46:30 +00:00
Lubomir Rintel 5cdeea43da quectel/shared: do not leak name string 2024-05-31 10:46:30 +00:00
Lubomir Rintel a42d12f660 shared-qmi: fix a leak in error handling path
str needs to be freed in pds_get_agps_config_ready().
2024-05-31 10:46:30 +00:00
Lubomir Rintel 5f6b095360 broadband-modem: fix a potential leak in cusd_process_string() error handling
On error, *converted may already be allocated and we need to free it
(but not in case we're returning it from the task).
2024-05-31 10:46:30 +00:00
Lubomir Rintel 39a90fc39a ublox/helpers: fix propagation of +URAT response parse error
We have been constructing a GError too late, just leaking it instead of
propagating.
2024-05-31 10:39:59 +00:00
Lubomir Rintel 7dfd59157e shared-qmi: do not leak a string in error path 2024-05-31 10:39:59 +00:00
Aleksander Morgado b3277a8563 port-mbim-fibocom: fix duplicated GError free 2024-05-30 08:46:54 +00:00
Lukas Voegl 7d0737a813 mm-iface-modem: clear signal only if supported
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2024-05-29 12:00:56 +00:00
Lukas Voegl 03318e4791 broadband-modem-cinterion: increase COPS timeout
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2024-05-29 12:00:56 +00:00
Aleksander Morgado 5ea26af0e4 rolling: new plugin
This plugin provides support for modems from Rolling Wireless. The
current approach is to re-use the AT-based and MBIM-based specific
modem implementations from the Fibocom plugin.

Based on an original implementation from:
vanillan wang <vanillanwang@163.com>

See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1170
2024-05-29 10:14:39 +00:00
Aleksander Morgado 800c2bb02a fibocom: MBIM in shared utils is optional 2024-05-29 09:50:05 +00:00
Aleksander Morgado 33649756f5 build: remove unnecessary shared dependency info from plugin option definitions 2024-05-29 09:50:05 +00:00
Aleksander Morgado 6c92749d20 broadband-modem-cinterion: use generic initial EPS bearer management logic
The Cinterion specific implementation relies on the generic one but
adds the authentication information support using ^SGAUTH.

The loading of the initial EPS bearer status (i.e. the one agreed with
the network, not the settings) no longer has any Cinterion specific
behavior. The auth settings are NOT reported in the initial EPS bearer
status.
2024-05-29 09:08:18 +00:00
Aleksander Morgado 9fcff66406 broadband-modem: allow subclassing initial eps bearer cid selection 2024-05-29 09:08:13 +00:00
Aleksander Morgado a063e2a15c fibocom: remove custom initial EPS bearer management
The implementation in the generic MMBroadbandModem object should fit
well instead of the custom implementation.

There is also no need to specify via udev tags which is the initial
EPS bearer context id, we try to automatically guess it in runtime.
2024-05-29 09:05:23 +00:00
Aleksander Morgado e7492270c2 broadband-modem: implement setting initial EPS bearer settings 2024-05-29 09:05:22 +00:00
Aleksander Morgado 471656addf broadband-modem: implement loading initial EPS bearer info 2024-05-29 09:05:22 +00:00
Aleksander Morgado 97cab9f37e broadband-modem: implement loading initial EPS bearer settings
The main issue here is how to select the id of the context that is
used for attach in the modem.

We will assume that the lowest cid value for the IP range returned in
the CGDCONT=? test is the one used for the attach context. This
assumption works with modems following the 3GPP specs (with cid=0) and
also in Qualcomm based modems (with cid=1).
2024-05-29 09:05:04 +00:00
Aleksander Morgado 50755b07d3 cli,3ppp: allow updating EPS settings before enabling 2024-05-29 08:14:13 +00:00
Aleksander Morgado 1263905753 cinterion: remove custom logic to power down modem before initial EPS bearer settings update 2024-05-29 08:14:12 +00:00
Aleksander Morgado cf1035169c fibocom: remove custom logic to power down modem before initial EPS bearer settings update
This is now done for all modems unconditionally.
2024-05-29 08:14:03 +00:00
Aleksander Morgado 1f508a8e1b broadband-modem-qmi: remove custom logic to power down modem before initial EPS bearer settings update 2024-05-29 08:02:40 +00:00