summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/ContextBase.cpp3
-rw-r--r--core/ContextBase.h1
-rw-r--r--etc/gps.conf10
3 files changed, 14 insertions, 0 deletions
diff --git a/core/ContextBase.cpp b/core/ContextBase.cpp
index e7ee8bf..5695544 100644
--- a/core/ContextBase.cpp
+++ b/core/ContextBase.cpp
@@ -71,6 +71,7 @@ const loc_param_s_type ContextBase::mGps_conf_table[] =
{"EXTERNAL_DR_ENABLED", &mGps_conf.EXTERNAL_DR_ENABLED, NULL, 'n'},
{"SUPL_HOST", &mGps_conf.SUPL_HOST, NULL, 's'},
{"SUPL_PORT", &mGps_conf.SUPL_PORT, NULL, 'n'},
+ {"MODEM_TYPE", &mGps_conf.MODEM_TYPE, NULL, 'n' },
};
const loc_param_s_type ContextBase::mSap_conf_table[] =
@@ -122,6 +123,8 @@ void ContextBase::readConfig()
mGps_conf.LPPE_CP_TECHNOLOGY = 0;
/* By default no LPPe UP technology is enabled*/
mGps_conf.LPPE_UP_TECHNOLOGY = 0;
+ /* By default we use unknown modem type*/
+ mGps_conf.MODEM_TYPE = 2;
/*Defaults for sap.conf*/
mSap_conf.GYRO_BIAS_RANDOM_WALK = 0;
diff --git a/core/ContextBase.h b/core/ContextBase.h
index e7edb29..fca381f 100644
--- a/core/ContextBase.h
+++ b/core/ContextBase.h
@@ -67,6 +67,7 @@ typedef struct loc_gps_cfg_s
uint32_t EXTERNAL_DR_ENABLED;
char SUPL_HOST[MAX_SUPL_SERVER_URL_LENGTH];
uint32_t SUPL_PORT;
+ uint32_t MODEM_TYPE;
} loc_gps_cfg_s_type;
/* NOTE: the implementaiton of the parser casts number
diff --git a/etc/gps.conf b/etc/gps.conf
index 7653408..51c0b96 100644
--- a/etc/gps.conf
+++ b/etc/gps.conf
@@ -229,3 +229,13 @@ PROPAGATION_TIME_UNCERTAINTY = 1
# INTERNET_IP_TYPE = 4
# SUPL_APN = abc.xyz
# SUPL_IP_TYPE = 4
+
+#####################################
+# Modem type
+#####################################
+# This setting configures modem type
+# (external=0 or internal=1)
+# comment out the next line to vote
+# for the first modem in the list
+MODEM_TYPE = 1
+