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:
parent
efd4e124a6
commit
b86a09596e
1 changed files with 3 additions and 1 deletions
|
@ -637,7 +637,9 @@ const void* loc_get_extension(const char* name)
|
|||
}
|
||||
else if (strcmp(name, GPS_GEOFENCING_INTERFACE) == 0)
|
||||
{
|
||||
ret_val = get_geofence_interface();
|
||||
if ((gps_conf.CAPABILITIES | GPS_CAPABILITY_GEOFENCING) == gps_conf.CAPABILITIES ){
|
||||
ret_val = get_geofence_interface();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue