aboutsummaryrefslogtreecommitdiff
path: root/src/mm-context.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-context.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-context.c')
-rw-r--r--src/mm-context.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mm-context.c b/src/mm-context.c
index 25b3a79c..8c341667 100644
--- a/src/mm-context.c
+++ b/src/mm-context.c
@@ -222,6 +222,7 @@ static gboolean test_quick_suspend_resume;
#if defined WITH_QRTR
static gboolean test_no_qrtr;
#endif
+static gboolean test_multiplex_requested;
static const GOptionEntry test_entries[] = {
{
@@ -265,6 +266,11 @@ static const GOptionEntry test_entries[] = {
NULL
},
#endif
+ {
+ "test-multiplex-requested", 0, 0, G_OPTION_ARG_NONE, &test_multiplex_requested,
+ "Default to request multiplex support if no explicitly given",
+ NULL
+ },
{ NULL }
};
@@ -328,6 +334,13 @@ mm_context_get_test_no_qrtr (void)
return test_no_qrtr;
}
#endif
+
+gboolean
+mm_context_get_test_multiplex_requested (void)
+{
+ return test_multiplex_requested;
+}
+
/*****************************************************************************/
static void