Aleksander Morgado
d6aa727366
broadband-modem-mbim: fix signal quality reporting with MBIMEx v2.0
...
When we enable MBIMEx v2.0, the "Signal State" responses and
indications no longer report a valid RSSI value; and instead, they
report per access technology RSRP/RSRQ values.
>>>>>> Header:
>>>>>> length = 116
>>>>>> type = indicate-status (0x80000007)
>>>>>> transaction = 0
>>>>>> Fragment header:
>>>>>> total = 1
>>>>>> current = 0
>>>>>> Contents:
>>>>>> service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
>>>>>> cid = 'signal-state' (0x0000000b)
>>>>>> Fields:
>>>>>> Rssi = '99'
>>>>>> ErrorRate = '99'
>>>>>> SignalStrengthInterval = '5'
>>>>>> RssiThreshold = '2'
>>>>>> ErrorRateThreshold = '4294967295'
>>>>>> RsrpSnr = '{
>>>>>> [0] = {
>>>>>> Rsrp = '0'
>>>>>> Snr = '0'
>>>>>> RsrpThreshold = '4294967295'
>>>>>> SnrThreshold = '4294967295'
>>>>>> SystemType = '5g-nsa'
>>>>>> },
>>>>>> [1] = {
>>>>>> Rsrp = '49'
>>>>>> Snr = '45'
>>>>>> RsrpThreshold = '4294967295'
>>>>>> SnrThreshold = '4294967295'
>>>>>> SystemType = 'lte'
>>>>>> },
>>>>>> }'
2021-10-18 00:04:59 +02:00
Aleksander Morgado
c01f22804e
modem-helpers: setup common RSSI to signal quality converter
2021-10-18 00:04:09 +02:00
Aleksander Morgado
e1bc4b0999
modem-helpers: remove unexistent method header
2021-10-18 00:04:01 +02:00
Andrew Lassalle
c355210f5d
bearer-properties: Add profile-name to the bearer properties
2021-10-17 17:56:44 +02:00
Andrew Lassalle
b2a7591bcf
broadband-modem-qmi: Add the profile name to profiles
2021-10-17 17:56:44 +02:00
Andrew Lassalle
8ecf7fc83e
3gpp-profile: Add profile name
...
QMI modems also report a profile name, and that value can be used to
select and update a specific profile.
2021-10-17 17:56:44 +02:00
Aleksander Morgado
c3fe738e7d
port-mbim: request MBIMEx v2.0
...
The ModemManager codebase has been ported to support Basic Connect v2
messages as defined in MBIMEx v2.0, so at this point we can now switch
to use it by default whenever possible.
2021-10-16 22:28:29 +02:00
Aleksander Morgado
d8137789ed
broadband-modem-mbim: support 'Signal State' from MBIMEx v2.0
2021-10-16 22:03:39 +02:00
Aleksander Morgado
b32d85b1bf
bearer-mbim: support 'Packet Service' from MBIMEx v2.0
2021-10-16 22:03:39 +02:00
Aleksander Morgado
aca14b92c6
broadband-modem-mbim: support 'Packet Service' from MBIMEx v2.0
2021-10-16 22:03:39 +02:00
Aleksander Morgado
6b4a79f8ae
broadband-modem-mbim: support 'Register State' from MBIMEx v2.0
2021-10-16 22:03:39 +02:00
Aleksander Morgado
f7b595d066
broadband-modem-mbim: pass MbimDevice to notification parsers
...
We're going to enable the Microsoft extensions by default, and in
order to properly parse the notification messages, we'll need to know
which is the currently agreed MBIMEx version.
So, pass down the MbimDevice to every notification parser. Not all of
them will need it, so just for completeness.
2021-10-16 22:03:39 +02:00
Aleksander Morgado
5f043e47bf
introspection,signal: minor doc fix in 5G RSRP
2021-10-16 00:02:26 +02:00
Daniele Palmas
6c574ce3d6
telit: remove prefix mm_shared in static function names
2021-10-15 15:23:59 +02:00
Daniele Palmas
f8c1e84939
telit: prefer qmi for set_current_bands if available
2021-10-15 15:22:02 +02:00
Daniele Palmas
266043255f
telit: prefer qmi for load_current_bands if available
2021-10-15 15:21:57 +02:00
Daniele Palmas
91e16ca282
telit: prefer qmi for load_supported_bands if available
2021-10-15 15:18:14 +02:00
Carlo Lobrano
3522a11578
telit: Detect 4G BND format from BND test reply
...
Telit modems that require hexadecimal number when specifying 4G bands
also reply to #BND=? command with a 4th parameter <LTE_band_ext>
(e.g. LM940, LM960, LN920, FN980).
On the other hand, modems that require decimal number when specifying 4G
bands only return 3 parameters to the same command.
It is then possible replace the detection of ext_4g_bands via UDEV tags
with an inspection of BND=? reply.
2021-10-15 11:39:33 +00:00
Amol Lad
650cdc5a32
telit: LN920 bands support
2021-10-15 11:39:33 +00:00
Freedom Liu
f5ab3c4678
foxconn: add T99W265 modules, support for QDU.
2021-10-15 14:05:27 +08:00
Aleksander Morgado
a1e6f911dd
cli,signal: fix error message without EOL
2021-10-14 16:10:13 +02:00
Aleksander Morgado
c06ca6df3f
qcom-soc: require udev tag for ports
...
Since the 'wwan' subsystem addition to the qcom-soc plugin, the rules
to say a modem is handled by this plugin are too broad, and the plugin
attempts to support any kind of device exposed by the WWAN subsystem,
not just those from Qualcomm SoCs.
Update the plugin to require a new ID_MM_QCOM_SOC udev tag that is set
in the plugin udev rules, given that these rules already check for the
expected SoC drivers (bam-dmux, ipa, qcom-q6v5-mss).
2021-10-14 12:54:21 +00:00
Aleksander Morgado
f9645c30b7
Revert "ci: temporarily build single plugins on merge requests"
...
This reverts commit 18b8a3c784 .
We no longer need this, back to only on schedules.
2021-10-14 10:56:36 +02:00
Aleksander Morgado
18b8a3c784
ci: temporarily build single plugins on merge requests
2021-10-14 10:34:40 +02:00
Aleksander Morgado
a5f2f84f44
ci: switch single plugins build to use meson
2021-10-14 10:34:30 +02:00
Iñigo Martínez
86fcf2592f
build,meson: Add an empty line to split includes and dependencies
2021-10-14 07:57:55 +00:00
Iñigo Martínez
803ce03d6a
build,meson: Remove unnecessary empty line
2021-10-14 07:57:55 +00:00
Iñigo Martínez
7c4f8f6cc5
build,meson: Make use of _opt suffix for option variables
...
To make option names consistent, an `_opt` suffix has been added.
This was not applied to `polkit` option at the time and this is
fixed now.
2021-10-14 07:57:55 +00:00
Iñigo Martínez
b3b16b3dc2
build,meson: Make use of partial_dependency for generated dependency
...
The generated objects in `libmm-glib` are include in
`libmm_glib_dep` one by one to avoid the link to the generated
library that is included as a whole in `libmm-glib`.
meson includes a way to include partial objects of a dependency by
using the `partial_dependency` method, so by taking advantage of it
almost all objects are included.
2021-10-14 07:57:55 +00:00
Iñigo Martínez
3974b8b98f
build,meson: Sort files alphabetically
2021-10-14 07:57:55 +00:00
Iñigo Martínez
c3b6a2876e
build,meson: Remove unused option
2021-10-14 07:57:55 +00:00
Iñigo Martínez
bbc157688d
build,meson: Improve plugins option set
...
Improved the way the plugins are set to allow a smaller summary.
2021-10-14 07:57:55 +00:00
Aleksander Morgado
85a99ae028
broadband-modem-qmi: fix non-initialized GError
2021-10-13 22:06:31 +02:00
Aleksander Morgado
8852cef817
quectel: fix non-initialized GError
...
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/442
2021-10-13 22:06:31 +02:00
Aleksander Morgado
2b742d99d5
broadband-modem-mbim: coding style fixes in the SAR implementation
2021-10-13 13:14:10 +02:00
Aleksander Morgado
708bde6b9c
broadband-modem-mbim: use a dynamically allocated MbimSarConfigState
...
It makes reading the code a bit easier.
2021-10-13 13:14:10 +02:00
Aleksander Morgado
58e617e03c
iface-modem-sar: fix initialization sequence completion
...
We cannot just return without completing the GTask. If we see the
support check method failed, just keep on with the state machine so
that the GTask is completed in the FAIL_IF_UNSUPPORTED step.
Also, don't assume GError is set if FALSE is returned. This is the
only kind of async method where we allow this right now.
2021-10-13 13:14:10 +02:00
Aleksander Morgado
05ddf7c293
mmcli,sar: rename actions to just --sar-enable and --sar-disable
2021-10-13 13:14:10 +02:00
Jack Song
f45bc200a9
broadband-modem-mbim: implement the sar interface
2021-10-13 13:14:10 +02:00
lvmaorui
1da847c407
broadband-modem: add the sar interface
2021-10-13 13:14:10 +02:00
Aleksander Morgado
19a6ba5562
build,meson: add SAR interface support in the daemon
2021-10-13 13:14:10 +02:00
lvmaorui
534ffc5ca6
iface-modem-sar: new MMIfaceModemSar interface
2021-10-13 13:14:10 +02:00
Aleksander Morgado
8329435bdf
build,meson: add SAR interface support in mmcli
2021-10-13 13:14:10 +02:00
lvmaorui
07a6b6032b
mmcli:add SAR command --sar-status/--sar-enable/--sar-disable/--set-power-level
2021-10-13 13:14:10 +02:00
Aleksander Morgado
1f321bd79d
build,meson: add SAR interface support in libmm-glib
2021-10-13 13:14:10 +02:00
lvmaorui
8e67d2375c
docs,libmm-glib: add SAR user-level api
2021-10-13 13:14:10 +02:00
Aleksander Morgado
dbd95e30c4
mm-broadband-modem-mbim: treat NO_ESIM_PROFILE as failure
2021-10-13 11:20:32 +02:00
Aleksander Morgado
fb97b0756b
build: bump libmbim version to use NO_ESIM_PROFILE
2021-10-13 11:14:08 +02:00
Aleksander Morgado
846dafe86b
build: sync libqmi and libmbim versions in meson build
...
Fixes f5168cb54b
2021-10-13 11:12:35 +02:00
Andrew Lassalle
43e76bf1bb
iface-modem: Allow SetPowerState(Low|On) on failed state
...
In some modems, the modem's radio can be ON when no SIM card is present.
In this case, the modem is in failed state, and the host cannot set the
power state to LOW. Since we we will allow the host to set the power to
LOW, we should allow it to set it back to ON.
2021-10-11 10:18:47 -07:00