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
This commit is contained in:
Dante Russo 2012-09-07 14:59:53 -07:00
parent 8c9ee75ac6
commit d3b220c611

View file

@ -1580,6 +1580,9 @@ static locClientStatusEnumType locClientQmiCtrlPointInit(
if (rc != QMI_NO_ERR) { if (rc != QMI_NO_ERR) {
QMI_CCI_OS_SIGNAL_WAIT(&os_params, LOC_CLIENT_SERVICE_TIMEOUT_UNIT); QMI_CCI_OS_SIGNAL_WAIT(&os_params, LOC_CLIENT_SERVICE_TIMEOUT_UNIT);
nosignal = QMI_CCI_OS_SIGNAL_TIMED_OUT(&os_params); 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; timeout += LOC_CLIENT_SERVICE_TIMEOUT_UNIT;