aboutsummaryrefslogtreecommitdiff
path: root/src/mm-bearer-qmi.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-07-29 00:07:27 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-08-09 12:22:26 +0000
commit185e492c0a0e633ed92f8ffdb1c426d0e4300ae1 (patch)
tree603e8f11ccd7e33a3ceca1a5fa82cc4cbabac0a2 /src/mm-bearer-qmi.c
parentc49f3f5f46e6f1a27108e9826c32af776ec111f9 (diff)
core: new '--test-multiplex-requested' option
The new option will change the default setting in MBIM and QMI bearers to "request" when no explicit "multiplex" configuration is given by the user. This option will help test the multiplexing support in the modems before it's made a default in a future release.
Diffstat (limited to 'src/mm-bearer-qmi.c')
-rw-r--r--src/mm-bearer-qmi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index f02cbf17..e1252ac2 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -34,6 +34,7 @@
#include "mm-port-enums-types.h"
#include "mm-log-object.h"
#include "mm-modem-helpers.h"
+#include "mm-context.h"
G_DEFINE_TYPE (MMBearerQmi, mm_bearer_qmi, MM_TYPE_BASE_BEARER)
@@ -2147,7 +2148,9 @@ load_settings_from_bearer (MMBearerQmi *self,
/* If no multiplex setting given by the user, assume none; unless in IPA */
ctx->multiplex = mm_bearer_properties_get_multiplex (properties);
if (ctx->multiplex == MM_BEARER_MULTIPLEX_SUPPORT_UNKNOWN) {
- if (!g_strcmp0 (data_port_driver, "ipa"))
+ if (mm_context_get_test_multiplex_requested ())
+ ctx->multiplex = MM_BEARER_MULTIPLEX_SUPPORT_REQUESTED;
+ else if (!g_strcmp0 (data_port_driver, "ipa"))
ctx->multiplex = MM_BEARER_MULTIPLEX_SUPPORT_REQUIRED;
else
ctx->multiplex = MM_BEARER_MULTIPLEX_SUPPORT_NONE;