[ofono-binder] Made UMTS network mode configurable. JB#59207
This commit is contained in:
@@ -201,3 +201,9 @@
|
||||
# Default 9 (LTE_GSM_WCDMA)
|
||||
#
|
||||
#lteNetworkMode=9
|
||||
|
||||
# UMTS network mode.
|
||||
#
|
||||
# Default 3 (GSM_WCDMA_AUTO)
|
||||
#
|
||||
#umtsNetworkMode=3
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user