- } else if (method == LOCATIONS_METHOD_GPS) {
- if (__is_gps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED) {
- LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x) : fail to location feature", LOCATIONS_ERROR_NOT_SUPPORTED);
- return LOCATIONS_ERROR_NOT_SUPPORTED;
- }
- } else if (method == LOCATIONS_METHOD_WPS) {
- if (__is_wps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED) {
- LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x) : fail to location feature", LOCATIONS_ERROR_NOT_SUPPORTED);
- return LOCATIONS_ERROR_NOT_SUPPORTED;
- }
- } else if (method == LOCATIONS_METHOD_PASSIVE) {
- if (__is_location_supported() == LOCATIONS_ERROR_NOT_SUPPORTED) {
- LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x) : fail to location feature", LOCATIONS_ERROR_NOT_SUPPORTED);
- return LOCATIONS_ERROR_NOT_SUPPORTED;
- }
- }