From f9487cf3d1c4a42bd143a2fab9672170c6bc6ce6 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 16 Dec 2021 11:45:13 +0100 Subject: core: new '--test-mbimex-profile-management' option The profile management APIs implemented by Microsoft in the MBIM extensions provide certain features that are not available via other means (e.g. ip type, access type preference, roaming allowance...). Unfortunately, these APIs require the current list of profiles installed in the modem to be a bit special; e.g. with one profile max for each context/APN type. If this does not happen, the operations will fail, or they will update contexts that should not be updated. So, we disable for now the MBIM extension profile management support; the logic is there, but not used by default. --- src/mm-context.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/mm-context.c') diff --git a/src/mm-context.c b/src/mm-context.c index e86c57da..ee9b372c 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -227,6 +227,9 @@ static gboolean test_quick_suspend_resume; static gboolean test_no_qrtr; #endif static gboolean test_multiplex_requested; +#if defined WITH_MBIM +static gboolean test_mbimex_profile_management; +#endif static const GOptionEntry test_entries[] = { { @@ -275,6 +278,13 @@ static const GOptionEntry test_entries[] = { "Default to request multiplex support if no explicitly given", NULL }, +#if defined WITH_MBIM + { + "test-mbimex-profile-management", 0, 0, G_OPTION_ARG_NONE, &test_mbimex_profile_management, + "Default to use profile management MBIM extensions", + NULL + }, +#endif { NULL } }; @@ -345,6 +355,14 @@ mm_context_get_test_multiplex_requested (void) return test_multiplex_requested; } +#if defined WITH_MBIM +gboolean +mm_context_get_test_mbimex_profile_management (void) +{ + return test_mbimex_profile_management; +} +#endif + /*****************************************************************************/ static void -- cgit v1.2.3-70-g09d2