Commit Graph
149 Commits
Author SHA1 Message Date
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 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 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 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 c5b9effdc7 iface-modem: allow reporting the previous power state after an update
Let the caller of mm_iface_modem_set_power_state() know which was the
power state in the device before the actual update happened.

This is useful in cases where we want to temporarily switch to a given
power state (e.g. low) before returning to the original power state.
2024-05-29 08:02:40 +00:00
Aleksander Morgado e215f644d6 huawei: trivial: remove trailing whitespaces 2024-05-29 08:01:36 +00:00
Oliver Kästner 8fb660f0e4 huawei: use G_GUINT64_CONSTANT 2024-05-23 00:35:01 +02:00
Oliver Kästner 2d3caa9a35 huawei: enable setting LTE bands 2024-05-23 00:35:01 +02:00
Aleksander Morgado e01eac5bfe test: longer timeout to wait for modem in test fixture
If the system running the test is under heavy load, the modem may need
time to get exposed. Just bump the timeout to a long enough value.
2024-05-17 08:36:43 +00:00
Aleksander Morgado 6a60543495 mtk: FM350 multiplexing support is checked in runtime
This was introduced in 2f306e8e7c
2024-05-17 08:12:47 +00:00
Aleksander Morgado 218d6d2c58 shared-simtech: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado 4afb6a3172 shared-cinterion: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado e4e6857aed shared-quectel: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado 18a084940a shared-option: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado 5a9634773b shared-fibocom: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado acca9dc9ec shared-xmm: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado b34d547d9c shared-telit: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado 1c919890c6 iface-modem-cdma: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:39 +00:00
Aleksander Morgado 0f48695d54 iface-modem-voice: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:38 +00:00
Aleksander Morgado 074277ca1a iface-modem-time: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:38 +00:00
Aleksander Morgado bec62a406c iface-modem-signal: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:38 +00:00
Aleksander Morgado 070975736f iface-modem-messaging: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:38 +00:00
Aleksander Morgado aa94b21e0a iface-modem-location: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:45:38 +00:00
Aleksander Morgado e535c90f5f iface-modem-firmware: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:05 +00:00
Aleksander Morgado 2b7e738b9b iface-modem-3gpp-ussd: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:04 +00:00
Aleksander Morgado f033a0a9f2 iface-modem-3gpp-profile-manager: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:04 +00:00
Aleksander Morgado ab6e4bf391 iface-modem-3gpp: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:04 +00:00
Aleksander Morgado 35c0a6905b iface-modem: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:04 +00:00
Aleksander Morgado 9aab129759 iface-port-at: use G_DECLARE|DEFINE_INTERFACE() macros 2024-05-06 13:27:04 +00:00
Aleksander Morgado 1e26e16168 broadband-modem-qmi-quectel: fix task completion when not enabling profile manager events
Fixes e3024ec620
2024-05-06 13:24:22 +00:00
Lukas Voegl e3024ec620 quectel: disable qmi unsolicited profile manager events
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2024-05-02 20:38:02 +00:00
Aleksander Morgado c66a6b89ec fibocom: create custom MBIM port object with potential AT support 2024-04-23 07:25:12 +00:00
Aleksander Morgado 586f98f71d fibocom: change parent class peeker method
Use the more generic MMBaseModemClass instead of MMBroadbandModemClass.
2024-04-23 07:25:12 +00:00
Aleksander Morgado 939be0fbf8 base-modem: support non-serial ports when peeking the best AT port
When we don't care about the type of AT port to use, prefer the QMI or
MBIM based ones if any available.
2024-04-23 07:25:12 +00:00
Aleksander Morgado 480e12c34e base-modem-at: switch to use the MMIfacePortAt by default
The whole codebase is updated to assume the MMBaseModem AT operations
require an object implementing the MMIfacePortAt interface, instead of
a MMPortSerialAt object.

In the places where we know the port is a MMPortSerialAt, e.g. when we
query explicitly for the primary or secondary serial AT port, we will
use an explicit MM_IFACE_PORT_AT() cast when calling the AT command
method.

In the places where we get_best_at_port() we're going to assume that
we don't know the port type. This method will be updated in a follow
up commit to support the MMIfacePortAt interface as well.
2024-04-23 07:25:12 +00:00
Lukas Voegl 537aca802f huawei: fix guint64 string formatting
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
2024-04-22 16:22:27 +02:00
Aleksander Morgado 941461a2c5 huawei: plugin sources depend on enums types 2024-04-16 11:45:51 +02:00
Oliver Kästner 2e4dc6911f huawei: handle IPv6 connection status changes 2024-04-12 11:17:18 +00:00
Oliver Kästner 4f1864921a huawei: implement loading supported IP families
This uses the proprietary `^NDISSTATQRY` instead of the default
`+CGDCONT` command, as the latter might return diffrent results
(i.e. reporting v6 support, that can't be used via NDIS).

Also add a fallback to `+CGDCONT?` for older modems that don't
support ^NDISSTATQRY.
2024-04-12 11:17:18 +00:00
Oliver Kästner 3adbcfb789 huawei: enable support for IPv6 2024-04-12 11:17:18 +00:00
Aleksander Morgado 3fe9bd183b broadband-modem-hso: don't assume GPS control port always exists 2024-04-12 01:17:14 +00:00
Aleksander Morgado 79b5b480ba broadband-modem-telit: configure +CIEV in both primary and secondary ports
And also avoid assuming that the secondary port always exists.
2024-04-12 01:17:14 +00:00
Aleksander Morgado f786e41635 broadband-modem-cinterion: don't assume primary port always exists 2024-04-12 01:17:14 +00:00
Aleksander Morgado c344e5a286 broadband-modem-ublox: don't assume primary port always exists 2024-04-12 01:17:14 +00:00
Aleksander Morgado 19aebae1da broadband-modem-nokia: don't assume primary port always exists 2024-04-12 01:17:14 +00:00
Aleksander Morgado f23a4b09b4 broadband-modem-option: don't assume primary port always exists 2024-04-12 01:17:14 +00:00
Aleksander Morgado 21f4147298 broadband-modem-hso: don't assume primary port always exists 2024-04-12 01:17:14 +00:00