From 356036e9f623193463d5de352f52b4592fcc01aa Mon Sep 17 00:00:00 2001 From: Kevin Tang Date: Sat, 19 Jan 2013 18:58:05 -0800 Subject: [PATCH] copy back supl es data to sm SUPL ES added additional optional fields in the NI indiation. We need to copy back these info as then came when we send back the notification to modem. This change is to add that. CRs-Fixed: 443946 Change-Id: Ib4a99441a03b2cb41b66d4c97253acbf118e4f05 --- loc_api/loc_api_v02/LocApiV02Adapter.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/loc_api/loc_api_v02/LocApiV02Adapter.cpp b/loc_api/loc_api_v02/LocApiV02Adapter.cpp index a3eb23f5..adde61d4 100644 --- a/loc_api/loc_api_v02/LocApiV02Adapter.cpp +++ b/loc_api/loc_api_v02/LocApiV02Adapter.cpp @@ -804,6 +804,24 @@ enum loc_api_adapter_err LocApiV02Adapter :: sizeof(qmiLocNiVxServiceInteractionStructT_v02)); } + // copy Network Initiated SUPL Version 2 Extension + if (request_pass_back->NiSuplVer2ExtInd_valid == 1) + { + ni_resp.NiSuplVer2ExtPayload_valid = 1; + memcpy(&(ni_resp.NiSuplVer2ExtPayload), + &(request_pass_back->NiSuplVer2ExtInd), + sizeof(qmiLocNiSuplVer2ExtStructT_v02)); + } + + // copy SUPL Emergency Notification + if(request_pass_back->suplEmergencyNotification_valid) + { + ni_resp.suplEmergencyNotification_valid = 1; + memcpy(&(ni_resp.suplEmergencyNotification), + &(request_pass_back->suplEmergencyNotification), + sizeof(qmiLocEmergencyNotificationStructT_v02)); + } + req_union.pNiUserRespReq = &ni_resp; status = loc_sync_send_req (