From 0ebaba253fa0a53bfe6c165073d5e17e66c99e8a Mon Sep 17 00:00:00 2001 From: Harikrishnan Hariharan Date: Mon, 18 Sep 2017 14:41:35 +0530 Subject: Set SUPL_HOST to modem on GnssAdapter init. On init of GnssAdapter, SUPL_HOST and SUPL_PORT are set to modem if the configs are set in gps.conf. Change-Id: I079879adf31022cfbf0098da8dba3bb86feed069 CRs-Fixed: 2110547 --- core/ContextBase.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/ContextBase.cpp') diff --git a/core/ContextBase.cpp b/core/ContextBase.cpp index 8af48fc..05a0ad3 100644 --- a/core/ContextBase.cpp +++ b/core/ContextBase.cpp @@ -65,6 +65,8 @@ const loc_param_s_type ContextBase::mGps_conf_table[] = {"USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL", &mGps_conf.USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL, NULL, 'n'}, {"AGPS_CONFIG_INJECT", &mGps_conf.AGPS_CONFIG_INJECT, NULL, 'n'}, {"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'}, }; const loc_param_s_type ContextBase::mSap_conf_table[] = @@ -98,6 +100,8 @@ void ContextBase::readConfig() mGps_conf.SUPL_VER = 0x10000; mGps_conf.SUPL_MODE = 0x1; mGps_conf.SUPL_ES = 0; + mGps_conf.SUPL_HOST[0] = 0; + mGps_conf.SUPL_PORT = 0; mGps_conf.CAPABILITIES = 0x7; /* LTE Positioning Profile configuration is disable by default*/ mGps_conf.LPP_PROFILE = 0; -- cgit v1.2.3