Checking Geofence Mask in gps.conf

Check the CAPABILITIES in gps.conf to see if the geofence is
enabled or not. If it is not enabled, the function of getting
geofence interface will return null.

Change-Id: I6500cedd775d83b4701fbe2b3a111c170c8a34be
CRs-fixed: 513494
This commit is contained in:
Jiafei Wen 2013-07-16 10:56:52 -07:00 committed by Gohulan Balachandran
parent efd4e124a6
commit b86a09596e

View file

@ -637,8 +637,10 @@ const void* loc_get_extension(const char* name)
}
else if (strcmp(name, GPS_GEOFENCING_INTERFACE) == 0)
{
if ((gps_conf.CAPABILITIES | GPS_CAPABILITY_GEOFENCING) == gps_conf.CAPABILITIES ){
ret_val = get_geofence_interface();
}
}
else
{
LOC_LOGE ("get_extension: Invalid interface passed in\n");