From 6286318db991c70597220830d3509a5a2423a21e Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Tue, 29 Nov 2022 18:11:00 +0200 Subject: [PATCH] [ofono-binder] Made UMTS network mode configurable. JB#59207 --- binder.conf | 6 ++++++ src/binder_plugin.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/binder.conf b/binder.conf index 897fe12..8bf47b1 100644 --- a/binder.conf +++ b/binder.conf @@ -201,3 +201,9 @@ # Default 9 (LTE_GSM_WCDMA) # #lteNetworkMode=9 + +# UMTS network mode. +# +# Default 3 (GSM_WCDMA_AUTO) +# +#umtsNetworkMode=3 diff --git a/src/binder_plugin.c b/src/binder_plugin.c index 7921f3b..e010bde 100644 --- a/src/binder_plugin.c +++ b/src/binder_plugin.c @@ -135,6 +135,7 @@ static const char* const binder_radio_ifaces[] = { #define BINDER_CONF_SLOT_REPLACE_STRANGE_OPER "replaceStrangeOperatorNames" #define BINDER_CONF_SLOT_SIGNAL_STRENGTH_RANGE "signalStrengthRange" #define BINDER_CONF_SLOT_LTE_MODE "lteNetworkMode" +#define BINDER_CONF_SLOT_UMTS_MODE "umtsNetworkMode" /* Defaults */ #define BINDER_DEFAULT_RADIO_INTERFACE RADIO_INTERFACE_1_2 @@ -1617,6 +1618,13 @@ binder_plugin_create_slot( config->lte_network_mode = ival; } + /* umtsNetworkMode */ + if (ofono_conf_get_integer(file, group, + BINDER_CONF_SLOT_UMTS_MODE, &ival)) { + DBG("%s: " BINDER_CONF_SLOT_UMTS_MODE " %d", group, ival); + config->umts_network_mode = ival; + } + /* useNetworkScan */ if (ofono_conf_get_boolean(file, group, BINDER_CONF_SLOT_USE_NETWORK_SCAN,