Merge "Handle SSR based on service list"

This commit is contained in:
Linux Build Service Account 2013-07-10 22:23:24 -07:00 committed by Gerrit - the friendly Code Review server
commit cc92e0ccd4

View file

@ -1727,21 +1727,21 @@ static locClientStatusEnumType locClientQmiCtrlPointInit(
// get the service addressing information
rc = qmi_client_get_service_list(locClientServiceObject, NULL, NULL,
&num_services);
/* If service is not up wait on a signal until the service is up
* or a timeout occurs. */
if (rc != QMI_NO_ERR) {
LOC_LOGV("%s:%d]: qmi_client_get_service_list() rc: %d "
"total timeout: %d", __func__, __LINE__, rc, timeout);
if(rc == QMI_NO_ERR)
break;
/* Service is not up. Wait on a signal until the service is up
or a timeout occurs. */
LOC_LOGD("%s:%d]: Service not up. Starting delay timer\n", __func__, __LINE__);
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);
}
if(nosignal)
timeout += LOC_CLIENT_SERVICE_TIMEOUT_UNIT;
LOC_LOGV("%s:%d]: qmi_client_get_service_list() rc %d, nosignal %d, "
"total timeout %d", __func__, __LINE__, rc, nosignal, timeout);
} while (timeout < LOC_CLIENT_SERVICE_TIMEOUT_TOTAL && nosignal && rc != QMI_NO_ERR);
} while (timeout < LOC_CLIENT_SERVICE_TIMEOUT_TOTAL);
if (0 == num_services || rc != QMI_NO_ERR) {
if (!nosignal) {
@ -2209,4 +2209,3 @@ bool locClientGetSizeByEventIndId(uint32_t eventIndId, size_t *pEventIndSize)
// not found
return false;
}