From d3b220c611eef4c56f7a818338556f9c71846ace Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Fri, 7 Sep 2012 14:59:53 -0700 Subject: [PATCH] gps: fix SSR issue If service list check fails initially while the modem is not up yet, the rc is not updated after client gets signaled that the modem is now up. Change-Id: I5fe05ddad7764874eda45521e9394bfbee0eb85f CRs-fixed: 385158 --- loc_api/loc_api_v02/loc_api_v02_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loc_api/loc_api_v02/loc_api_v02_client.c b/loc_api/loc_api_v02/loc_api_v02_client.c index 12782b93..7294d33e 100644 --- a/loc_api/loc_api_v02/loc_api_v02_client.c +++ b/loc_api/loc_api_v02/loc_api_v02_client.c @@ -1580,6 +1580,9 @@ static locClientStatusEnumType locClientQmiCtrlPointInit( if (rc != QMI_NO_ERR) { QMI_CCI_OS_SIGNAL_WAIT(&os_params, LOC_CLIENT_SERVICE_TIMEOUT_UNIT); nosignal = QMI_CCI_OS_SIGNAL_TIMED_OUT(&os_params); + if (!nosignal) + rc = qmi_client_get_service_list(locClientServiceObject, NULL, NULL, + &num_services); } timeout += LOC_CLIENT_SERVICE_TIMEOUT_UNIT;