TI_STATUS openAuth_smStartIdle(auth_t *pAuth)
{
	TI_STATUS		status;

	status = openAuth_smResetRetry(pAuth);
	if (TI_OK != status) {
		TRACE0(pAuth->hReport, REPORT_SEVERITY_ERROR, "openAuth_smStartIdle: openAuth_smResetRetry return\n");
		return status;
	}

	status = openAuth_smSendAuthReq(pAuth);
	if (TI_OK != status) {
		TRACE0(pAuth->hReport, REPORT_SEVERITY_ERROR, "openAuth_smStartIdle: openAuth_smSendAuthReq return\n");
		return status;
	}

	status = openAuth_smStartTimer(pAuth);
	if (TI_OK != status) {
		TRACE0(pAuth->hReport, REPORT_SEVERITY_ERROR, "openAuth_smStartIdle: openAuth_smStartTimer return\n");
		return status;
	}

	status = openAuth_smIncRetry(pAuth);
	if (TI_OK != status) {
		TRACE0(pAuth->hReport, REPORT_SEVERITY_ERROR, "openAuth_smStartIdle: openAuth_smIncRetry return\n");
		return status;
	}

	return status;
}
Exemplo n.º 2
0
TI_STATUS openAuth_smStartIdle(auth_t *pAuth)
{
	TI_STATUS		status;

	status = openAuth_smResetRetry(pAuth);
	if (TI_OK != status) {
		return status;
	}

	status = openAuth_smSendAuthReq(pAuth);
	if (TI_OK != status) {
		return status;
	}

	status = openAuth_smStartTimer(pAuth);
	if (TI_OK != status) {
		return status;
	}

	status = openAuth_smIncRetry(pAuth);
	if (TI_OK != status) {
		return status;
	}

	return status;
}
TI_STATUS openAuth_smTimeoutWait(auth_t *hAuth)
{
	TI_STATUS		status;

	status = openAuth_smSendAuthReq(hAuth);
	status = openAuth_smStartTimer(hAuth);
	status = openAuth_smIncRetry(hAuth);

	return status;
}