diff options
author | Torsten Hilbrich <torsten.hilbrich@secunet.com> | 2020-12-02 12:46:32 +0100 |
---|---|---|
committer | Torsten Hilbrich <torsten.hilbrich@secunet.com> | 2020-12-03 08:00:30 +0100 |
commit | 8072ed2d6f4240ceb7b66f5e618192fd54ea94b2 (patch) | |
tree | e95e341c1915c051a8134776312d352c50494eaf /src/mm-broadband-modem-mbim.h | |
parent | f80c8d8be6a22accb71f06b33f53daed3d255bec (diff) |
broadband-modem-mbim: Add MM_BROADBAND_MODEM_MBIM_QMI_UNSUPPORTED
This property (initially set to FALSE) controls whether QMI over MBIM
should never be considered. This property is set to TRUE for XMM-based
MBIM devices as they don't support QMI.
This fixes a probing delay of 15s on a Fibocom L850-GL device
(2cb7:0007) found in the Lenovo T14 Gen 1.
The establishing of a QMI connection was refused multiple time with
MBIM error OperationNotAllowed. Only the timeout of 15s for this
connection resumed the probing.
The properties in the MMBroadbandModemMbim are only installed when
WITH_QMI and QMI_MBIM_QMUX_SUPPORTED are set. Actually, this should only
disable the PROP_QMI_UNSUPPORTED but as this is the only property this
avoids the "unused variable 'self'" warnings/errors when trying to
compile set_property and get_property without QMI support. This can be
changed once other properties are needed.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/284
Diffstat (limited to 'src/mm-broadband-modem-mbim.h')
-rw-r--r-- | src/mm-broadband-modem-mbim.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-broadband-modem-mbim.h b/src/mm-broadband-modem-mbim.h index 2d241fed..66a12f2a 100644 --- a/src/mm-broadband-modem-mbim.h +++ b/src/mm-broadband-modem-mbim.h @@ -29,6 +29,8 @@ typedef struct _MMBroadbandModemMbim MMBroadbandModemMbim; typedef struct _MMBroadbandModemMbimClass MMBroadbandModemMbimClass; typedef struct _MMBroadbandModemMbimPrivate MMBroadbandModemMbimPrivate; +#define MM_BROADBAND_MODEM_MBIM_QMI_UNSUPPORTED "broadband-modem-mbim-qmi-unsupported" + struct _MMBroadbandModemMbim { MMBroadbandModem parent; MMBroadbandModemMbimPrivate *priv; |