GPS: fix the issue that GNSS position report are dropped in PPC based target

Change-Id: I94fb2bd12ac8751cbd2366a4cc5fde4b52d17f64
CRs-Fixed: 395398
This commit is contained in:
Vineela Tummalapalli 2012-09-11 12:51:22 +05:30
parent d3b220c611
commit 06ce79b8fa

View file

@ -624,6 +624,8 @@ LocApiRpcAdapter::deleteAidingData(GpsAidingData bits)
void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *location_report_ptr) void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *location_report_ptr)
{ {
LocPosTechMask tech_Mask = LOC_POS_TECH_MASK_DEFAULT;
GpsLocation location = {0}; GpsLocation location = {0};
location.size = sizeof(location); location.size = sizeof(location);
@ -678,6 +680,10 @@ void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *loca
location.flags |= GPS_LOCATION_HAS_ACCURACY; location.flags |= GPS_LOCATION_HAS_ACCURACY;
location.accuracy = location_report_ptr->hor_unc_circular; location.accuracy = location_report_ptr->hor_unc_circular;
} }
// Technology Mask
tech_Mask |= location_report_ptr->technology_mask;
//Mark the location source as from GNSS //Mark the location source as from GNSS
location.flags |= LOCATION_HAS_SOURCE_INFO; location.flags |= LOCATION_HAS_SOURCE_INFO;
location.position_source = ULP_LOCATION_IS_FROM_GNSS; location.position_source = ULP_LOCATION_IS_FROM_GNSS;
@ -685,7 +691,8 @@ void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *loca
LocApiAdapter::reportPosition(location, LocApiAdapter::reportPosition(location,
locEngHandle.extPosInfo((void*)location_report_ptr), locEngHandle.extPosInfo((void*)location_report_ptr),
(location_report_ptr->session_status == RPC_LOC_SESS_STATUS_IN_PROGESS ? (location_report_ptr->session_status == RPC_LOC_SESS_STATUS_IN_PROGESS ?
LOC_SESS_INTERMEDIATE : LOC_SESS_SUCCESS)); LOC_SESS_INTERMEDIATE : LOC_SESS_SUCCESS),
tech_Mask);
} }
} }
else else