+/*******************************************************************
+ *
+ * @brief Checks the status of the received information
+ *
+ * @details
+ *
+ * Function : duCheckReqStatus
+ *
+ * Functionality:
+ * Checks the status of the received information
+ *
+ * @params[in] Confirm status
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ ******************************************************************/
+S16 duCheckReqStatus(CmStatus *cfm)
+{
+ S16 ret = ROK;
+ if(cfm->status != LCM_PRIM_OK)
+ {
+ DU_LOG("\nDU_APP : Failed to process the request successfully");
+ ret = RFAILED;
+ }
+ RETVALUE(ret);
+}
+
+/**************************************************************************
+ * @brief Function to configure SCTP params and
+ * responsible for F1 and E2 interfaces
+ *
+ * @details
+ *
+ * Function : duLayerConfigComplete
+ *
+ * Functionality:
+ * Configures SCTP Params and responsible for handling
+ * F1 and E2 interface.
+ *
+ * @param[in] void
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ ***************************************************************************/
+S16 duLayerConfigComplete()
+{
+ S16 ret = ROK;
+ CmStatus cfm;
+
+ DU_LOG("\nDU_APP : Configuring all Layer is complete");
+
+ duSctpCfgReq(duCfgParam.sctpParams, &cfm);
+ if((ret = duCheckReqStatus(&cfm)) != ROK)
+ {
+ DU_LOG("\nDU_APP : Failed configuring Sctp Params");
+ ret = RFAILED;
+ }
+ duSctpAssocReq(duCfgParam.sctpParams.itfType.f1Itf, &cfm);
+ if((ret = duCheckReqStatus(&cfm)) != ROK)
+ {
+ DU_LOG("\nDU_APP : Failed to send AssocReq F1");
+ ret = RFAILED;
+ }
+ duSctpAssocReq(duCfgParam.sctpParams.itfType.e2Itf, &cfm);
+ if((ret = duCheckReqStatus(&cfm)) != ROK)
+ {
+ DU_LOG("\nDU_APP : Failed to send AssocReq E2");
+ ret = RFAILED;
+ }
+
+ RETVALUE(ret);
+}
+