Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Building mib PDU and SSB changes at scheduler
[o-du/l2.git]
/
src
/
cm
/
du_app_mac_inf.c
diff --git
a/src/cm/du_app_mac_inf.c
b/src/cm/du_app_mac_inf.c
index
408d395
..
ee8bb95
100644
(file)
--- a/
src/cm/du_app_mac_inf.c
+++ b/
src/cm/du_app_mac_inf.c
@@
-24,7
+24,6
@@
#include "ss_queue.h"
#include "ss_task.h"
#include "ss_msg.h"
#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 "gen.x" /* general */
#include "ssi.x" /* system services */
@@
-34,6
+33,7
@@
#include "cm_hash.x" /* Common Hash List Definitions */
#include "cm_lte.x" /* Common LTE Defines */
#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"
/**************************************************************************
#include "du_app_mac_inf.h"
/**************************************************************************
@@
-53,7
+53,7
@@
* RFAILED - failure
*
***************************************************************************/
* RFAILED - failure
*
***************************************************************************/
-
S
16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
+
U
16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
{
if(pst->selector == DU_SELECTOR_LC)
{
{
if(pst->selector == DU_SELECTOR_LC)
{
@@
-72,6
+72,7
@@
S16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg)
/* pack the address of the structure */
CMCHKPK(cmPkPtr,(PTR)macCellCfg, mBuf);
/* pack the address of the structure */
CMCHKPK(cmPkPtr,(PTR)macCellCfg, mBuf);
+ DU_LOG("\nDU-APP : MAC CELL config sent");
RETVALUE(SPstTsk(pst,mBuf));
}
}
RETVALUE(SPstTsk(pst,mBuf));
}
}
@@
-123,7
+124,7
@@
void unpackDuMacCellCfg(
*
* @details
*
*
* @details
*
- * Function :
cmP
ackMacCellCfgCfm
+ * Function :
p
ackMacCellCfgCfm
*
* Functionality:
* packs the transaction ID
*
* Functionality:
* packs the transaction ID
@@
-134,7
+135,7
@@
void unpackDuMacCellCfg(
* RFAILED - failure
*
***************************************************************************/
* RFAILED - failure
*
***************************************************************************/
-U16
cmP
ackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
+U16
p
ackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
{
if(pst->selector == DU_SELECTOR_LC)
{
{
if(pst->selector == DU_SELECTOR_LC)
{
@@
-145,6
+146,7
@@
U16 cmPackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
}
/* pack the transaction ID in CNF structure */
}
/* pack the transaction ID in CNF structure */
+ CMCHKPK(SPkU8, macCellCfgCfm->rsp, mBuf);
CMCHKPK(SPkU16, macCellCfgCfm->transId, mBuf);
RETVALUE(SPstTsk(pst,mBuf));
CMCHKPK(SPkU16, macCellCfgCfm->transId, mBuf);
RETVALUE(SPstTsk(pst,mBuf));
@@
-154,6
+156,7
@@
U16 cmPackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
/* only LC is supported */
return RFAILED;
}
/* only LC is supported */
return RFAILED;
}
+ return ROK;
}
/**************************************************************************
}
/**************************************************************************
@@
-173,7
+176,7
@@
U16 cmPackMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm)
* RFAILED - failure
*
***************************************************************************/
* RFAILED - failure
*
***************************************************************************/
-
S
16 unpackMacCellCfgCfm(
+
U
16 unpackMacCellCfgCfm(
DuMacCellCfgCfm func,
Pst *pst,
Buffer *mBuf)
DuMacCellCfgCfm func,
Pst *pst,
Buffer *mBuf)
@@
-184,6
+187,7
@@
S16 unpackMacCellCfgCfm(
{
/* unpack the transaction ID in CNF structure */
CMCHKUNPK(SUnpkU16, &(macCellCfgCfm.transId), mBuf);
{
/* unpack the transaction ID in CNF structure */
CMCHKUNPK(SUnpkU16, &(macCellCfgCfm.transId), mBuf);
+ CMCHKUNPK(SUnpkU8, &(macCellCfgCfm.rsp), mBuf);
RETVALUE((*func)(&macCellCfgCfm));
}
RETVALUE((*func)(&macCellCfgCfm));
}
@@
-191,6
+195,7
@@
S16 unpackMacCellCfgCfm(
{
/* only loose coupling is suported */
}
{
/* only loose coupling is suported */
}
+ return ROK;
}
/**********************************************************************
}
/**********************************************************************