From 185e492c0a0e633ed92f8ffdb1c426d0e4300ae1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 29 Jul 2021 00:07:27 +0200 Subject: 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. --- src/mm-context.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mm-context.c') 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 -- cgit v1.2.3-70-g09d2