From 06ce79b8fa87383a5740edf04691e3e9bb275f7f Mon Sep 17 00:00:00 2001 From: Vineela Tummalapalli Date: Tue, 11 Sep 2012 12:51:22 +0530 Subject: [PATCH] GPS: fix the issue that GNSS position report are dropped in PPC based target Change-Id: I94fb2bd12ac8751cbd2366a4cc5fde4b52d17f64 CRs-Fixed: 395398 --- .../libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp b/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp index 843a8ae9..bd384717 100644 --- a/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp +++ b/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp @@ -624,6 +624,8 @@ LocApiRpcAdapter::deleteAidingData(GpsAidingData bits) void LocApiRpcAdapter::reportPosition(const rpc_loc_parsed_position_s_type *location_report_ptr) { + LocPosTechMask tech_Mask = LOC_POS_TECH_MASK_DEFAULT; + GpsLocation location = {0}; 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.accuracy = location_report_ptr->hor_unc_circular; } + + // Technology Mask + + tech_Mask |= location_report_ptr->technology_mask; //Mark the location source as from GNSS location.flags |= LOCATION_HAS_SOURCE_INFO; 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, locEngHandle.extPosInfo((void*)location_report_ptr), (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