#include "ss_queue.h"
#include "ss_task.h"
#include "ss_msg.h"
-#include "du_cfg.h"
#include "gen.x" /* general */
#include "ssi.x" /* system services */
#include "cm_hash.x" /* Common Hash List Definitions */
#include "cm_lte.x" /* Common LTE Defines */
+#include "du_cfg.h"
#include "du_app_mac_inf.h"
/**************************************************************************
* RFAILED - failure
*
***************************************************************************/
-S16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
+U16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
{
if(pst->selector == DU_SELECTOR_LC)
{
/* pack the address of the structure */
CMCHKPK(cmPkPtr,(PTR)macCellCfg, mBuf);
+ DU_LOG("\nDU-APP : MAC CELL config sent");
RETVALUE(SPstTsk(pst,mBuf));
}
}
*
* @details
*
- * Function : cmPackMacCellCfgCfm
+ * Function : packMacCellCfgCfm
*
* Functionality:
* packs the transaction ID
* RFAILED - failure
*
***************************************************************************/
-U16 cmPackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
+U16 packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
{
if(pst->selector == DU_SELECTOR_LC)
{
}
/* pack the transaction ID in CNF structure */
+ CMCHKPK(SPkU8, macCellCfgCfm->rsp, mBuf);
CMCHKPK(SPkU16, macCellCfgCfm->transId, mBuf);
RETVALUE(SPstTsk(pst,mBuf));
/* only LC is supported */
return RFAILED;
}
+ return ROK;
}
/**************************************************************************
* RFAILED - failure
*
***************************************************************************/
-S16 unpackMacCellCfgCfm(
+U16 unpackMacCellCfgCfm(
DuMacCellCfgCfm func,
Pst *pst,
Buffer *mBuf)
{
/* unpack the transaction ID in CNF structure */
CMCHKUNPK(SUnpkU16, &(macCellCfgCfm.transId), mBuf);
+ CMCHKUNPK(SUnpkU8, &(macCellCfgCfm.rsp), mBuf);
RETVALUE((*func)(&macCellCfgCfm));
}
{
/* only loose coupling is suported */
}
+ return ROK;
}
/**********************************************************************