Dan Williams
abf9babb02
build: add -Ddeprecated=[true|false] to control deprecated symbols
...
Instead of using CFLAGS="-DMM_DISABLE_DEPRECATED" meson ...
which doesn't handle -Werror very well let's make it an explicit
option. Defaults to true, and autodetects previous CFLAGS
mechanism to preserve backwards compatibility.
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2026-08-29 23:29:13 -05:00
xuhongxing
b10139f96b
Rolling: Add modifications related to the rw350-usb project
...
1.Modify rule files for the 33f8/0802 MI interface
2.Modify the rolling plugin code to share and reuse code from the mtk plugin
T: Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 5 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1
P: Vendor=33f8 ProdID=0802 Rev=00.01
S: Manufacturer=Rolling Wireless S.a.r.l.
S: Product=USB DATA CARD
C: #Ifs=10 Cfg#= 1 Atr=a0 MxPwr=896mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=85(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs
E: Ad=05(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=06(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=87(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 7 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=07(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 8 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=08(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=89(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I: If#= 9 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=09(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=8a(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
Signed-off-by: xuhongxing <James.Xu@fibocom.com >
2026-04-22 18:26:57 +08:00
Andrey Skvortsov
a108a0fe7c
build: Fix meson deprecation warnings
...
following warnings are fixed:
Dependency udev found: YES 258 (cached)
../meson.build:202: WARNING: Project targets '>= 0.60.0' but uses
feature deprecated since '0.56.0':
dependency.get_pkgconfig_variable. use
dependency.get_variable(pkgconfig : ...) instead
Dependency systemd found: YES 258 (cached)
../meson.build:212: WARNING: Project targets '>= 0.60.0' but uses
feature deprecated since '0.56.0':
dependency.get_pkgconfig_variable. use
dependency.get_variable(pkgconfig : ...) instead
Dependency libsystemd found: YES 258 (cached)
Dependency polkit-gobject-1 found: YES 126 (cached)
../meson.build:245: WARNING: Project targets '>= 0.60.0' but uses
feature deprecated since '0.56.0':
dependency.get_pkgconfig_variable. use
dependency.get_variable(pkgconfig : ...) instead
Dependency mbim-glib found: YES 1.32.0 (cached)
Dependency qmi-glib found: YES 1.37.1 (cached)
../meson.build:302: WARNING: Project targets '>= 0.60.0' but uses
feature deprecated since '0.56.0':
dependency.get_pkgconfig_variable. use
dependency.get_variable(pkgconfig : ...) instead
Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com >
2026-01-10 02:04:10 +03:00
Andrey Skvortsov
8ac3dfb955
location-cache: add class to store cached location
...
This class allows to preserve cached position across ModemManager restarts.
Cached location can be used to improve time to first fix after device
start by injecting coarse position into location engine. Since there
wasn't any fix yet, position in ModemManager is unknown. To fix this
cached location is saved on disk (/var/lib/ModemManager/location.ini)
when location session is stopped or ModemManager is stopped and loaded
on the next start from the file.
install_emptydir is introduced in meson 0.60.
Distributions has to create directory to store cached location in
packaging, because ModemManager runs under systemd isolation with
limited rights and it can't create this directory by itself.
Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com >
2026-01-10 02:04:10 +03:00
Dan Williams
e12e1f4183
release: bump version to 1.25.95
...
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-11-24 23:55:56 -06:00
Dan Williams
3a2a33d3f0
meson: bump libqmi requirement to 1.37.95
...
Latest libqmi adds QMI_NAS_RADIO_INTERFACE_NO_CHANGE which will
cause failures when building with -Wall if NO_CHANGE isn't handled
in switch() statements. So we add that. But then of course you can't
build with older libqmi because it doesn't have NO_CHANGE.
So just bump the requirement.
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-11-24 23:40:27 -06:00
Guido Günther
e88e481ca3
build: Bump version to 1.25.1
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-06-04 10:01:08 +02:00
Guido Günther
32f7e3ec09
build: Bump minimum libqmi dependency to 1.37.1
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-06-04 10:01:08 +02:00
Guido Günther
c04f178dda
build: Allow to use libqmi as subproject
...
This makes it simpler to build ModemManager git
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-05-22 08:20:19 -05:00
Guido Günther
9cb5a2d090
build: Allow to use libmbim as subproject
...
This makes it simpler to build ModemManager git
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-05-22 08:20:19 -05:00
Dan Williams
8174be2aec
build: unstable release version bump to 1.25.0
...
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-04-09 20:42:06 -05:00
Dan Williams
5fadfdbd1e
release: bump version to 1.24.0
...
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-04-09 18:33:14 -05:00
Dan Williams
b3b986c79e
build: bump libmbim requirement to >= 1.32 and libqmi to >= 1.36
...
ModemManager uses some of the new symbols in libqmi.
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-04-09 08:31:24 -05:00
Dan Williams
c6dcab6161
release: bump version to 1.23.95
...
Signed-off-by: Dan Williams <dan@ioncontrol.co >
2025-03-10 22:42:42 -05:00
Yegor Yefremov
907f7a2813
Specify a path to the ITS rules
...
Use our own ITS rules found under data/its. This resolves a
configuration breakage on some systems:
msgfmt: cannot locate ITS rules for data/org.freedesktop.ModemManager1.policy.in
According to the msgfmt manual, we need to specify a path to the parent
directory containing its folder. Hence, we add a path to data as the
data_dirs option.
2025-01-23 02:36:31 +00:00
Stig M. Baugstø
0c167a5124
cellient: new generic plugin for Cellient modems with optional QMI
...
Simple plugin handling Cellient (vid 0x2692) modems. Optional QMI
through the WITH_QMI compile flag. Disables QMI WDS PCO for the
Qualcomm-branded MPL200 by setting the ID_MM_QMI_PCO_DISABLED udev
tag, effectively preventing a modem crash.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/842
Signed-off-by: Stig M. Baugstø <1129097-stigma@users.noreply.gitlab.freedesktop.org >
2024-10-24 15:21:57 +02:00
Aleksander Morgado
70e761d91c
build: unstable release version bump to 1.23.12
2024-10-14 08:03:15 +00:00
Aleksander Morgado
a1f8045c53
build: require libmbim 1.31.5
...
We need a newer libmbim to handle the MBIM_CID_QDU_COMMAND operation
introduced for AT over MBIM in Quectel modems.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/892
2024-09-20 09:31:05 +00:00
Aleksander Morgado
a1214b5fd5
build: unstable release version bump to 1.23.11
2024-09-16 09:19:23 +00:00
Aleksander Morgado
04b3a3f01c
build: unstable release version bump to 1.23.10
2024-08-21 17:52:24 +00:00
Aleksander Morgado
8ff4b3638f
modem-helpers-qmi: map the DUN/tethering APN type
...
libqmi version is bumped to 1.35.6, which is the unstable tag that
includes the new symbols.
2024-08-21 17:04:38 +00:00
Aleksander Morgado
e685479a6e
build: reorder netprisma plugin alphabetically
2024-08-02 14:40:12 +00:00
Mank Wang
d7dab1773d
Netprisma: Add new plugin
2024-08-02 14:34:16 +00: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
Aleksander Morgado
14192af87e
build: unstable release version bump to 1.23.9
2024-07-26 16:35:18 +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
Aleksander Morgado
79ad16e32b
build: unstable release version bump to 1.23.8
2024-06-14 09:16:08 +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
378d28118b
build: unstable release version bump to 1.23.7
2024-05-13 11:29:21 +00:00
Aleksander Morgado
c169b397cd
build: unstable release version bump to 1.23.6
2024-04-22 08:09:52 +00:00
Nero
04d826f563
dispatcher-modem-setup: new modem setup dispatcher
...
There are cases where the user wants to configure some actions
to be run on a modem before ModemManager takes over full control.
The new "modem setup" dispatcher scripts allow running operations
in the modem after the port probing has happened and we know which
ports are usable in the device.
The scripts may e.g. change device configuration, enable modem
logging infrastructure, or any other process that would otherwise
conflict with MM's own modem management operations.
2024-04-16 12:14:45 +02:00
Aleksander Morgado
b909922e26
build: unstable release version bump to 1.23.5
2024-03-22 13:45:56 +00:00
Aleksander Morgado
6a8797927c
build: unstable release version bump tp 1.23.4
2024-02-19 14:58:32 +00:00
Yegor Yefremov
a729a92e10
build: fix fs.copyfile usage for meson versions 0.64/0.64.1
...
Though this function was introduced in 0.64, its usage with install_dir
was broken till meson version 1.0.0. Hence, bump the minimal required
meson version for the fs.copyfile() routine.
See the following meson commit for details:
https://github.com/mesonbuild/meson/commit/100456de0761ee949e2277c97746cb8571b6ba39
2024-01-30 12:23:39 +01:00
Aleksander Morgado
9f4ee19601
build: unstable release version bump to 1.23.3
2024-01-29 10:41:02 +00:00
Yegor Yefremov
7c23c3db2f
build: resolve deprecated 'copy' key argument in configure_file warning
...
Resolves the following warning:
NOTICE: Future-deprecated features used:
* 0.64.0: {'copy arg in configure_file'}
copy arg was deprecated in meson version 0.64. Hence, use
fs.copyfile() that is also introduced in 0.64, in versions
since 0.64 and use the old approach for older versions.
2024-01-15 09:40:40 +00:00
Aleksander Morgado
88f9950182
build: unstable release version bump to 1.23.2
2023-12-13 10:55:29 +00:00
Aleksander Morgado
11a1720daf
mtk: add FM350 specific MBIM implementation
...
Including logic to set low power mode during an EPS initial bearer
settings update.
2023-11-06 15:11:38 +00:00
Aleksander Morgado
29f8154ef7
build: unstable release version bump to 1.23.1
2023-10-31 13:51:30 +00:00
ming-pei.hsu
eb776be926
mtk: add mtk plugin which support mbim interface
...
Add MTK plugin for mtk_t7xx platform which support MBIM interface.
2023-10-30 10:03:53 +00:00
ming-pei.hsu
4fdda13c4e
mtk: rename for old mtk plugin
...
Use mtk-legacy to instead mtk plugin.
2023-10-11 13:27:31 +00:00
Aleksander Morgado
bc7eda356b
build: post-release version bump to 1.23.0
2023-10-11 12:45:04 +00:00
Aleksander Morgado
03f786ce66
release: bump version to 1.22.0
...
Require libmbim 1.30.0 and libqmi 1.34.0.
2023-10-11 12:32:44 +00:00
Aleksander Morgado
aa7ab917f7
build: bump version to 1.21.900 (1.22-rc1)
2023-09-27 11:26:32 +00:00
Aleksander Morgado
639900ed36
build: unstable release version bump to 1.21.8
2023-08-07 05:01:31 +00:00
Aleksander Morgado
0724f45731
build: require udevdir if udev support is disabled
...
We cannot guess the udevdir path from the pkgconfig variable if there
is no udev support in the system, so explicitly fail.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/750
2023-07-13 10:22:05 +00:00
Aleksander Morgado
97c32d6e51
build: unstable release version bump to 1.21.7
2023-06-06 13:27:12 +00:00
Aleksander Morgado
2455981ad6
build: unstable release version bump to 1.21.6
2023-05-03 19:59:37 +00:00
Aleksander Morgado
f922a6be2d
broadband-modem-mbim: ensure cached state info is reseted on disable
...
So that it is reloaded fresh once re-enabled, otherwise we may be
using stale state values that are not in sync with the state reported
in the interface skeletons.
2023-05-03 12:38:43 +00:00