deleteActionSequence(actionNode);
CM_LLIST_FIRST_NODE(actionList, actionNode);
}
-
}
/******************************************************************
* ****************************************************************/
uint8_t e2ProcStatsDeleteRsp(MacStatsDeleteRsp *statsDeleteRsp)
{
+ RicRequestId requestId;
+ uint16_t ranFuncId;
RanFunction *ranFuncDb = NULLP;
CmLList *ricSubscriptionNode = NULLP;
RicSubscription *ricSubscriptionInfo = NULLP;
DU_LOG("\nERROR --> E2AP : e2ProcStatsDeleteRsp: Failed to fetch subscriprtion details");
return RFAILED;
}
+ ranFuncId = ricSubscriptionInfo->ranFuncId;
+ memcpy(&requestId, &ricSubscriptionInfo->requestId, sizeof(RicRequestId));
deleteRicSubscriptionNode(ricSubscriptionNode);
- if(statsDeleteRsp->result == MAC_DU_APP_RSP_NOK)
+ if(statsDeleteRsp->subsDelRsp == MAC_DU_APP_RSP_NOK)
{
- if(statsDeleteRsp->status == STATS_ID_NOT_FOUND)
+ if(statsDeleteRsp->subsDelCause == STATS_ID_NOT_FOUND)
{
failureCause.causeType =E2_RIC_REQUEST;
failureCause.cause = E2_REQUEST_INFORMATION_UNAVAILABLE;
failureCause.cause = E2_MISCELLANEOUS_CAUSE_UNSPECIFIED;
}
- if(BuildAndSendRicSubscriptionDeleteFailure(ricSubscriptionInfo->ranFuncId, ricSubscriptionInfo->requestId, failureCause) != ROK)
+ if(BuildAndSendRicSubscriptionDeleteFailure(ranFuncId, requestId, failureCause) != ROK)
{
DU_LOG("\nERROR --> E2AP : e2ProcStatsDeleteRsp: failed to build and send ric subs delete failure");
return RFAILED;
}
else
{
- if(BuildAndSendRicSubscriptionDeleteResponse(ricSubscriptionInfo->ranFuncId, ricSubscriptionInfo->requestId) != ROK)
+ if(BuildAndSendRicSubscriptionDeleteResponse(ranFuncId, requestId) != ROK)
{
DU_LOG("\nERROR --> E2AP : e2ProcStatsDeleteRsp: failed to build and send ric subs delete rsp");
return RFAILED;