Age | Commit message (Collapse) | Author |
|
Do it in a function instead of the same thing in a bunch of places.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
Consistently interpret the modem's reported custom data class when
loading current mode, supported mode, supported capabilities,
setting current mode, and current access technology.
Normalize the data class to include any custom data class immediately
after reading it from any MBIM message. De-normalize it when sending
back to the modem when setting current modes so the modem receives
MBIM_DATA_CLASS_CUSTOM for the custom mode.
Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/937
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
CellBroadcast: Add libmm-glib and mmcli support for setting channels
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1321
Closes #934
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Allows to set the channel list like:
mmcli -m any --cell-broadcast-set-channels=0-9999,4353
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
This allows to get the current channel list:
$ mmcli -m any --cell-broadcast-status
--------------------------
Cell Broadcast | channels: 0-9999,4353
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Support reading channels in the API too
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
fcc-unlock: Transition the 14c3 FCC unlock script to use sh
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1313
|
|
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
This enables the usage with busybox and strict environments.
This is related to #483 and the previous commit 91ed72aa, 02baf283.
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
cellbroadcast: Allow to set channel list
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1294
Closes #934
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
This adds support for setting the channels to override the boot up modem
defaults:
```
busctl --system call org.freedesktop.ModemManager1 /org/freedesktop/ModemManager1/Modem/0 org.freedesktop.ModemManager1.Modem.CellBroadcast SetChannels 'a(uu)' 1 0 9999
busctl --system get-property org.freedesktop.ModemManager1 /org/freedesktop/ModemManager1/Modem/0 org.freedesktop.ModemManager1.Modem.CellBroadcast Channels
a(uu) 1 0 9999
```
Closes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/934
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
`CSCB` has the form
```
CSCB: [0|1],"<channel-list>","<data-coding-scheme>"
```
If the first parameter is `0` this specifies the accepted types if `1`
it specifies rejected.
So far seen in the wild were CSCB strings with accepted types only and a
coding scheme of "" so this is what we handle for the moment.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
broadband-modem: detect modem modes with +CEREG and +C5GREG
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1301
Closes #786
|
|
Some AT-based modems like the Quectel Unisoc-based RM500U don't
support the older AT commands we used to detect modes like
AT*CNTI=2 and AT+WS46. Add support for detecting 4G and 5G
with generic commands too.
Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/786
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
port-probe: allow per-port ID_MM_TTY_AT_PROBE_TRIES tag for custom number of AT probes
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1240
|
|
Use the new early port probe logic to do AT probes before the custom
init hook actually starts.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
AT probes
For modems that need more time to respond to AT port probes (like some Telit devices,
and Cinterion-based Telit MV31/MV32) allow a custom number of AT probe tries on a
per-port basis for generic probing, or plugins that opt into this functionality.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
broadband-modem,iface-modem: don't treat SIM unlocks as hot-swaps
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1318
|
|
If the old IMSI was unavailable because the SIM was locked, but now
is available because the SIM was unlocked, don't treat the SIM
properties change as a hotswap that may trigger dropping and re-probing
the modem.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
api: fix license headers in MM API
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1317
|
|
The libmm-glib library, as well as the ModemManager headers installed
as part of the D-Bus service API, have always been LGPLv2+ licensed,
because we want users of the service to rely on them in their own
programs, even if they are proprietary.
Some files had an incorrect GPLv2+ header instead of the LGPLv2+ and
that was confusing. All public headers in the MM API have the correct
license text now.
Signed-off-by: Aleksander Morgado <aleksandermj@chromium.org>
|
|
treewide: Fix typos
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1316
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
release: bump version to 1.23.95
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1315
|
|
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
port-probe: ensure port is open for all plugin AT probes
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1305
|
|
If multiple plugins are selected for probing a modem with AT probes,
earlier plugins may only request some probes but not all. When
those probes complete successfully, subsequent plugins won't re-do
the probes that were already completed, but jump to ones that
haven't yet been done.
For example, plugin A may request only AT probes but plugin B
may request AT, AT_PRODUCT, and AT_VENDOR. Plugin B will start
with AT_PRODUCT probes because plugin A already completed the AT
probe.
The code in probe_step() only opened the serial port for the
AT probe, I guess assuming that all AT-type probes would be
done in sequence. But in the above scenario they are not.
Instead, make sure the port is opened for all AT style probes
that have not yet been executed.
Fixes: 7937a89a37e941e9a77cddcce8226c316fe70821 port-probe: rework and consolidate port probe flow for AT/QCDM/QMI/MBIM
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
fcc-unlock: Case-insensitive grep for for 105b (MBIM) and 14c3 (AT)
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1312
|
|
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
fcc-unlock: combine Quectel FCC unlock scripts and add support for RM520N
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1308
|
|
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
Add symlinks for new supported Quectel RM520N:
- RM520N (standard) 2c7c:0801
- RM520N (HP shipped) 1eac:1004
- RM520N (Lenovo shipped) 1eac:1007
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
Both scripts control MBIM ports and can be merged into a single script.
Signed-off-by: Jongmin Kim <jmkim@debian.org>
|
|
broadband-modem,cli: slightly bump 3GPP scan timeout; add some cli dbus timeout slack
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1307
|
|
timeout slack
Add some mmcli D-Bus timeout slack, making them slightly higher than the
ModemManager internal timeout, to ensure the cli doesn't time out the
D-Bus call when MM succeeds.
For 3GPP scan, some modems appear to have internal 5 minute timeouts,
so ensure MM doesn't time out right before the modem returns results:
ModemManager[282578]: <dbg> [1741054422.321400] [ttyUSB2/at] --> 'AT+COPS=?<CR>'
ModemManager[282578]: <wrn> [1741054722.247806] [modem1] failed scanning networks: Serial command timed out
ModemManager[282578]: <dbg> [1741054724.119770] [ttyUSB2/at] <-- '<CR><LF>+COPS: (1,"T-Mobile","T-Mobile","310260",0),,(0,1,2,3,4),(0,1,2)<CR><LF><CR><LF>OK<CR><LF>'
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|
|
Fix some typos on the source code
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1309
|
|
All in debug messages or code comments so not user / client visible.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
|
|
cli: Added bearer path print after successful modem connect
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1279
|
|
For a ModemManager simple connect using mmcli, added the bearer
path on which call is connected. This helps in determining the
bearer path to directly retrieve bearer information easily
of this particular call.
Signed-off-by: Anagh G <quic_anaghg@quicinc.com>
|
|
ci: ensure DCO check exits with correct error code on failure
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1306
|
|
Signed-off-by: Dan Williams <dan@ioncontrol.co>
|