Commit graph

73 commits

Author SHA1 Message Date
Kevin Tang
e065604f30 OTDOA support
(must have CR 370306 as dependency)
CRs-Fixed: 402746

Change-Id: I505becab45f643b352e8ff3aeb242b15b623cb7b
2012-11-15 15:42:13 -08:00
Linux Build Service Account
6d7116dda4 Merge "gps: do not lock mutex during loc_ioctl" 2012-11-12 17:30:39 -08:00
Linux Build Service Account
a3403fa52c Merge "Loc api v02 support for QMI_LOC rev 2.17" 2012-11-11 17:53:28 -08:00
Dante Russo
9fd717a6ae gps: do not lock mutex during loc_ioctl
Locking the slot mutext during a loc_ioctl call
can cause deadlock in some rare cases.

Change-Id: I09aa2ad7c67c326fee90447db960895d7f1fb149
CRs-fixed: 412208
2012-11-07 09:45:23 -08:00
Tushar Janefalkar
e4f800932f Add NULL checks for callbacks
As a security measure, callbacks
are checked to make sure they are
not NULL pointers.

Change-Id: I391e1cc373e8098449303709d8d1b67d305fb633
CRs-Fixed: 404438
2012-11-05 10:20:16 -08:00
Nitin Singh
5f45c04c89 Loc api v02 support for QMI_LOC rev 2.17
changes to suuport pedometer and motion data control API

Change-Id: I56c87adaa1f717c76bf1ff6eb2d195c92acbd38d
2012-11-02 13:11:57 -07:00
Kevin Tang
0529b2b9bb XTWiFi: disable coarse position injection when XTWiFi NLP is in use
Disable coarse position injection from GPS HAL when XTWiFi
Network Location Provider is in use. This is needed to avoid self
learning loop inside modem.

Change-Id: I0526317221d3490c41d0d8d901fbfa4d93e9a0b0
CRs-Fixed: 409409
2012-10-17 14:49:56 -07:00
Linux Build Service Account
f86ec94d37 Merge "Service modem's request for NTP time" 2012-10-15 18:34:52 -07:00
Linux Build Service Account
250adab993 Merge "Remove interpretation of LPP config parameter" 2012-10-12 12:56:10 -07:00
Tushar Janefalkar
d6c8792769 Remove interpretation of LPP config parameter
Instead of having a switch case that sets bits in the
lppconfig mask, the mask is assigned whatever value
was read from gps.conf. The advantage of this being
that if in the future additional bits are added in
lppconfig, there need not be a code change; only
comments in gps.conf have to be updated to inform the
correct value for those additional bits

CRs-Fixed: 406969

Change-Id: I979151b44cd85e98b59b4586fdd49e20a7d7c82b
2012-10-12 10:24:02 -07:00
Tushar Janefalkar
2051ffae1f Service modem's request for NTP time
Previously, modem's request for NTP time was not supported.
This change enables that request to be serviced through the HAL
and current NTP time is injected into the modem

CRs-Fixed: 406357

Change-Id: I471f98cf57a276902d7991da48cf7244fe798318
2012-10-11 15:07:49 -07:00
Satheesh Jayakumar
0eaa3bab7e BIT:Fixes a bug in HAL for AGPS operation for SGLTE
Enhances HAL to launch the Daemon connection server
for SGLTE targets too.
CRs-Fixed: 409237

Change-Id: I70116eb1f96b8b4dbe39f57dfceb1ab02ef65e4d
2012-10-11 11:54:11 -07:00
Kevin Tang
a389eae611 dynamically build and load adapter libs
this is to support bringup efforts. This change will decouple
the dependencies between GPS HAL and proprietary QMI headers,
so that we can build HAL without any proprietary repos.

Change-Id: I7b836d09f4ac6b1a1bdb38f8d6a2bfb90bb5bf01
2012-10-05 18:37:05 -07:00
Linux Build Service Account
b6a9a0d446 Merge "ATL call crash fix" 2012-10-03 03:17:07 -07:00
Linux Build Service Account
3a6bfa4bc3 Merge "BIT:Fixes a bug in the pipe ownership for BIT AGPS interface" 2012-10-02 22:42:33 -07:00
Linux Build Service Account
8dba00b498 Merge "gps: add support for apq8064 v2" 2012-10-02 20:27:59 -07:00
Satheesh Jayakumar
502865cbdf BIT:Fixes a bug in the pipe ownership for BIT AGPS interface
Changes to assign the correct permissions for 'gps" group for
Rx path from HAL to BIT daemon

Change-Id: I6c5dc4ff0a1379a95888f4d98e88f0174a7a2a79
CRs-Fixed: 400339, 387672
2012-10-01 12:01:36 -07:00
Linux Build Service Account
de8ce86fe4 Merge "gps: report session begin/end on gps start/stop" 2012-10-01 10:33:13 -07:00
Linux Build Service Account
c16468cc8d Merge "QMI LOC bug fix on SGLTE OOS IND" 2012-09-28 16:05:58 -07:00
Dante Russo
5b98ce35cd gps: add support for apq8064 v2
The id for apq8064 v2 is 153 vs apq8064 v1
id of 109, so the id can be either in order
to conclude that the device is apq8064 so
that GSS can be launched.

Change-Id: I8126854f18ba30a1fe46992993185266e9d1db18
CRs-fixed: 405494
2012-09-28 15:31:11 -07:00
Kevin Tang
67754118ce ATL call crash fix
AgpsStatus added with a couple string fields for wifi
which are not NULL ended when they are not used. This
get passed to AFW JNI, and allow UTF8 string with the
open ended buffer with junks in it. It might cause
exception depending on the content of the garbadge.

CRs-Fixed: 405473

Change-Id: If762748a4c63fe1be59491b5d08dbadd479176b3
2012-09-28 14:46:43 -07:00
Dante Russo
dc7abf9a3d gps: report session begin/end on gps start/stop
Since modem does not consistently send
SESSON_END/ENGINE_OFF event, always report
SESSION_END on stop gps and SESSION_BEGIN on
start gps so that the icon is turned on/off
correctly.

CRs-fixed: 401664
Change-Id: Ib3954529056a653d7057aedb489be1ccee9eaf1d
2012-09-27 15:22:14 -07:00
Kevin Tang
0a28a39125 QMI LOC bug fix on SGLTE OOS IND
Change-Id: I4408beede3d05d6cfb1a9a5ead3a44a31b1263cf
2012-09-27 10:07:13 -07:00
Linux Build Service Account
40f4d0d40d Merge "LOC_API: Modify LOC_API to support MSAPU client." 2012-09-25 08:01:47 -07:00
Amol Mahesh
899ebaa3de LOC_API: Modify LOC_API to support MSAPU client.
Modify LOC_API to support MSAPU client which would also
request for the access to wifi network.

Change-Id: I74a5f83484953c52437855467b04c2a4c2ccfa27
2012-09-24 13:44:50 -07:00
Amol Mahesh
a03322f3a7 LOC_API: Add group permissions after creating the pipe.
Add the group permissions to the pipe after creation so
that it can be accessed by the group.

Change-Id: Ib42639ee8a46a498c4e246bc448fe8267fd5fa7d
2012-09-24 13:41:46 -07:00
Linux Build Service Account
7da07e83ff Merge "QMI LOC and Loc API update:" 2012-09-22 09:53:09 -07:00
Kevin Tang
af0b025a0a QMI LOC and Loc API update:
Inject motion data and Get NI Geofence List;
subsystem restart over QMUXD;
CR 368109
SGLTE CID / OOS / NI SUPL INIT

Change-Id: I3bd77e87de61c2c2565bbb151d661c717367c0ed
2012-09-20 19:05:59 -07:00
Linux Build Service Account
48cd8b423b Merge "gps: AP NMEA generation" 2012-09-19 13:33:15 -07:00
Linux Build Service Account
6947e9cb07 Merge "gps: launch GSS on bootup even if GPS is disabled" 2012-09-19 02:54:55 -07:00
Dante Russo
a3409617b6 gps: AP NMEA generation
Generate NMEA sentences on the AP

Change-Id: Ifc9e9263868ab4dec450bef35c53c441c881a072
2012-09-17 07:34:08 -07:00
Linux Build Service Account
24d928186f Merge "gps: control session state evt from HAL, not modem" 2012-09-15 12:15:05 -07:00
Dante Russo
4d0a381848 gps: launch GSS on bootup even if GPS is disabled
Move the launching of GSS from loc_init to
get_gps_interface, since loc_init is only called
by AFW when GPS is enabled.

CRs-fixed: 399637
Change-Id: I7cf8500f6a345f3bef71f717c595ea734da2bff2
2012-09-14 13:47:20 -07:00
Vineela Tummalapalli
06ce79b8fa GPS: fix the issue that GNSS position report are dropped in PPC based target
Change-Id: I94fb2bd12ac8751cbd2366a4cc5fde4b52d17f64
CRs-Fixed: 395398
2012-09-11 18:35:28 +05:30
Dante Russo
02d13cc646 gps: control session state evt from HAL, not modem
Suppress the registering for QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02
event from modem, that is normally responsible for generating
GPS_STATUS_SESSION_BEGIN and GPS_STATUS_SESSION_END, and instead
initiate these events from hal from when we get GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF

Change-Id: I9d220bef7ee4f989a3982d888ed46279861f612d
CRs-fixed: 370904
2012-09-10 16:58:40 -07:00
Dante Russo
d3b220c611 gps: fix SSR issue
If service list check fails initially while the modem
is not up yet, the rc is not updated after client gets
signaled that the modem is now up.

Change-Id: I5fe05ddad7764874eda45521e9394bfbee0eb85f
CRs-fixed: 385158
2012-09-07 15:13:43 -07:00
Linux Build Service Account
8c9ee75ac6 Merge "gps: add support for msm8974" into jb 2012-09-05 11:39:45 -07:00
Linux Build Service Account
0d9f485c56 Merge "build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES" into jb 2012-09-02 11:04:47 -07:00
Linux Build Service Account
23559d02ae Merge "loc_api: Fix QUIPS position being dropped at GPS HAL" into jb 2012-09-01 12:01:52 -07:00
Dante Russo
b4f4652ce2 gps: add support for msm8974
Change-Id: I4a4520bcfb118fea8dfc244efff4837003466d34
2012-08-31 15:48:18 -07:00
Neethu Joseph
332389d67f loc_api: Fix QUIPS position being dropped at GPS HAL
Change-Id: I10606597f39b29fd4b3a8acfacd9a8c17aa9713f
2012-08-29 12:16:57 -07:00
Linux Build Service Account
5a1211b42f Merge "loc_api: Send position technology mask to ulp" into jb 2012-08-26 04:32:23 -07:00
Neethu Joseph
7ce61c42e2 loc_api: Send position technology mask to ulp
Sends the technology mask of the position report to ulp and blocks
the injected wifi fix from getting reported as final

Change-Id: I3a9b390d3d6d9be1a913731d6e8d8ee1d3ced686
2012-08-21 09:38:26 -07:00
Nagender Telkar
b1595d72cb build: Include path to TARGET_OUT_HEADERS in LOCAL_C_INCLUDES
Change-Id: I5cd48e37ef747a021329f8d166320ee88ef2fd3e
2012-08-18 21:48:19 -07:00
Dante Russo
72e3b852de loc_api_v02: Initialize the QMI notifier before looking for service
Looking for a service results in opening and closing the IPC Router
socket. This in turn involves IPC Router to trigger loading & unloading
the modem. Sometimes this causes the race condition between modem unload
and modem coming out of reset.

CRs-fixed: 384906
Change-Id: I61767d3eeab5867f64f94c5d4cdee4272de2dc44
2012-08-15 15:54:24 -07:00
Dante Russo
cd9e934abe gps: merge ics tip into jb
Merges the following change lists:
Ibdd65ec497ad6996c5d55ca907a995ed63b797cf
I75266b7102f8cd06db7b9bf038ee24c0dfbed822
I398704add524a807ddc088dfd28520dad7668784

Change-Id: I29275e65fc98568625eded942587c87b4ac8d1b9
2012-08-08 14:33:55 -07:00
Dante Russo
3088fe9117 gps: jb porting with qcom enhanced features
based from AU_LINUX_ANDROID_ICS.04.00.04.00.205

Change-Id: I0af1da1438a136e98b59110641ce5c7714da220b
2012-07-18 15:13:16 -07:00
Dante Russo
3c2630ef2a gps: initial merge to jb
based from AU_LINUX_ANDROID_ICS.04.00.01.00.007
with qcom enhanced features flagged out

Change-Id: I2bc03fe4447047fd7c9a7d000040dadb8bb34647
2012-07-12 21:58:21 -07:00
Anup Dasari
a2fc84b219 Add optional flag in make file
Change-Id: I099cd597c77641bdf2a98732f87484ec6d70f9a9
2012-07-10 22:35:56 +05:30
Nick Kralevich
7573253c26 remove HAL_MODULE_INFO_SYM const
HAL_MODULE_INFO_SYM was declared as read-only, but
the struct is written to by libhardware.  This causes
a segfault when -Wl,-z,relro is enabled.

Fixed.

Change-Id: Ied24f54a294ea705b06754a419823d595e3def62
2012-03-01 17:07:59 -08:00