summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDante Russo <drusso@codeaurora.org>2014-07-21 19:48:06 -0700
committerVineeta Srivastava <vsrivastava@google.com>2014-08-01 07:45:59 +0000
commit33627a403843dfa40837e800663475cba345a044 (patch)
tree84a6f4142609e9991d68e59acf90d994bb2dfad4
parentbaa459d347822e00382d3278bb1fb45b04d1ef94 (diff)
downloadandroid_hardware_qcom_gps-33627a403843dfa40837e800663475cba345a044.tar.gz
android_hardware_qcom_gps-33627a403843dfa40837e800663475cba345a044.tar.bz2
android_hardware_qcom_gps-33627a403843dfa40837e800663475cba345a044.zip
Fix regression issues with msm8960 hal split
Add gps.conf to msm8960 hal that was removed on accident. Fix SUPL issue with msm8960 hal, which should use AGpsInterface_v1 instead of AGpsInterface after the SUPL IPV4V6 changes. Bug: 16242253 Bug: 16235511 Change-Id: Id1af7e9c76c7225f92ffbc08d7655f684dd2bff0 Mendal testing change of commit message, please ignore
-rw-r--r--msm8960/etc/Android.mk12
-rwxr-xr-xmsm8960/etc/gps.conf85
-rw-r--r--msm8960/loc_api/libloc_api_50001/loc.cpp4
3 files changed, 99 insertions, 2 deletions
diff --git a/msm8960/etc/Android.mk b/msm8960/etc/Android.mk
new file mode 100644
index 0000000..025d3f7
--- /dev/null
+++ b/msm8960/etc/Android.mk
@@ -0,0 +1,12 @@
+
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := gps.conf
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/
+LOCAL_SRC_FILES := gps.conf
+
+include $(BUILD_PREBUILT)
+
diff --git a/msm8960/etc/gps.conf b/msm8960/etc/gps.conf
new file mode 100755
index 0000000..60f3123
--- /dev/null
+++ b/msm8960/etc/gps.conf
@@ -0,0 +1,85 @@
+# XTRA_SERVER_QUERY (1=on, 0=off)
+# If XTRA_SERVER_QUERY is on, the XTRA_SERVERs listed
+# below will be ignored, and instead the servers will
+# be queried from the modem.
+XTRA_SERVER_QUERY=0
+# XTRA_SERVERs below are used only if XTRA_SERVER_QUERY
+# is off.
+XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
+XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
+XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
+
+# Error Estimate
+# _SET = 1
+# _CLEAR = 0
+ERR_ESTIMATE=0
+
+#Test
+NTP_SERVER=time.gpsonextra.net
+#Asia
+# NTP_SERVER=asia.pool.ntp.org
+#Europe
+# NTP_SERVER=europe.pool.ntp.org
+#North America
+# NTP_SERVER=north-america.pool.ntp.org
+
+# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
+# 4 - Debug, 5 - Verbose
+# If DEBUG_LEVEL is commented, Android's logging levels will be used
+DEBUG_LEVEL = 2
+
+# Intermediate position report, 1=enable, 0=disable
+INTERMEDIATE_POS=0
+
+# supl version 1.0
+SUPL_VER=0x10000
+
+# GPS Capabilities bit mask
+# SCHEDULING = 0x01
+# MSB = 0x02
+# MSA = 0x04
+# ON_DEMAND_TIME = 0x10
+# GEOFENCE = 0x20
+# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
+CAPABILITIES=0x37
+
+# Accuracy threshold for intermediate positions
+# less accurate positions are ignored, 0 for passing all positions
+# ACCURACY_THRES=5000
+
+################################
+##### AGPS server settings #####
+################################
+
+# FOR SUPL SUPPORT, set the following
+# SUPL_HOST=supl.host.com or IP
+# SUPL_PORT=1234
+SUPL_HOST=supl.google.com
+SUPL_PORT=7276
+
+# FOR C2K PDE SUPPORT, set the following
+# C2K_HOST=c2k.pde.com or IP
+# C2K_PORT=1234
+
+####################################
+# LTE Positioning Profile Settings
+####################################
+# 0: Enable RRLP on LTE(Default)
+# 1: Enable LPP_User_Plane on LTE
+# 2: Enable LPP_Control_Plane
+# 3: Enable both LPP_User_Plane and LPP_Control_Plane
+LPP_PROFILE = 0
+
+################################
+# EXTRA SETTINGS
+################################
+# NMEA provider (1=Modem Processor, 0=Application Processor)
+NMEA_PROVIDER=0
+
+##################################################
+# Select Positioning Protocol on A-GLONASS system
+##################################################
+# 0x1: RRC CPlane
+# 0x2: RRLP UPlane
+# 0x4: LLP Uplane
+A_GLONASS_POS_PROTOCOL_SELECT = 0
diff --git a/msm8960/loc_api/libloc_api_50001/loc.cpp b/msm8960/loc_api/libloc_api_50001/loc.cpp
index 90b3b86..f765966 100644
--- a/msm8960/loc_api/libloc_api_50001/loc.cpp
+++ b/msm8960/loc_api/libloc_api_50001/loc.cpp
@@ -91,9 +91,9 @@ static int loc_agps_closed();
static int loc_agps_open_failed();
static int loc_agps_set_server(AGpsType type, const char *hostname, int port);
-static const AGpsInterface sLocEngAGpsInterface =
+static const AGpsInterface_v1 sLocEngAGpsInterface =
{
- sizeof(AGpsInterface),
+ sizeof(AGpsInterface_v1),
loc_agps_init,
loc_agps_open,
loc_agps_closed,