diff options
author | ghepeu <ghepeu@gmail.com> | 2013-07-14 20:58:17 +0200 |
---|---|---|
committer | ghepeu <ghepeu@gmail.com> | 2013-07-15 15:39:02 +0200 |
commit | 29ac3d8f5b5ad248e276b997571f407deb8188cd (patch) | |
tree | b501f952f03859096c19b99483a626a81a7cf5d4 | |
parent | c4fed0bc8d3cc7d7024c78deae1ace720ee4bf39 (diff) | |
download | device_samsung_galaxys2-common-29ac3d8f5b5ad248e276b997571f407deb8188cd.zip device_samsung_galaxys2-common-29ac3d8f5b5ad248e276b997571f407deb8188cd.tar.gz device_samsung_galaxys2-common-29ac3d8f5b5ad248e276b997571f407deb8188cd.tar.bz2 |
galaxys2: add AGPS psc field
The GPS chipset used in the phone can use the Psc value for AGPS.
Rename field in AGpsRefLocationCellID struct and add a new define.
Credit to Qaweck from xda-developers forum for finding the meaning
of the field.
Change-Id: Ib917c3b0ebf3c4b0a683fc993ff41521a01b32d4
-rw-r--r-- | include/hardware/gps.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/hardware/gps.h b/include/hardware/gps.h index f6c1452..4f91ffb 100644 --- a/include/hardware/gps.h +++ b/include/hardware/gps.h @@ -228,6 +228,11 @@ typedef uint16_t AGpsStatusValue; */ #define AGPS_RIL_INTERFACE "agps_ril" +/** + * The GPS chipset can use Psc for AGPS. + */ +#define AGPS_USE_PSC + /** Represents a location. */ typedef struct { /** set to sizeof(GpsLocation) */ @@ -314,7 +319,9 @@ typedef struct { uint16_t mcc; uint16_t mnc; uint16_t lac; - uint16_t foo; // Samsung magic +#ifdef AGPS_USE_PSC + uint16_t psc; +#endif uint32_t cid; } AGpsRefLocationCellID; |