X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fdu_app_mac_inf.c;h=3fb656616162152a523f31d51a21b8e802c5ab6e;hb=refs%2Fchanges%2F49%2F12949%2F3;hp=b05b9889a71f771ea4afabc5016a87f00355752d;hpb=ebe7300f91cb53117193fbec021b423013d1d6ef;p=o-du%2Fl2.git diff --git a/src/cm/du_app_mac_inf.c b/src/cm/du_app_mac_inf.c index b05b9889a..3fb656616 100644 --- a/src/cm/du_app_mac_inf.c +++ b/src/cm/du_app_mac_inf.c @@ -18,6 +18,8 @@ #include "common_def.h" #include "du_app_mac_inf.h" +/********************* Global Variable ********************/ +uint64_t ueBitMapPerCell[MAX_NUM_CELL]; /* Bit Map to store used/free UE-IDX per Cell */ /************************************************************************** * @brief Function to pack Loose Coupled @@ -127,8 +129,8 @@ uint8_t packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm) } /* pack the transaction ID in CNF structure */ - CMCHKPK(oduUnpackUInt16, macCellCfgCfm->cellId, mBuf); - CMCHKPK(oduUnpackUInt8, macCellCfgCfm->rsp, mBuf); + CMCHKPK(oduPackUInt16, macCellCfgCfm->cellId, mBuf); + CMCHKPK(oduPackUInt8, macCellCfgCfm->rsp, mBuf); return ODU_POST_TASK(pst,mBuf); } @@ -164,8 +166,8 @@ uint8_t unpackMacCellCfgCfm(DuMacCellCfgCfm func, Pst *pst, Buffer *mBuf) if(pst->selector == ODU_SELECTOR_LC) { /* unpack the transaction ID in CNF structure */ - CMCHKUNPK(oduPackUInt8, &(macCellCfgCfm.rsp), mBuf); - CMCHKUNPK(oduPackUInt16, &(macCellCfgCfm.cellId), mBuf); + CMCHKUNPK(oduUnpackUInt8, &(macCellCfgCfm.rsp), mBuf); + CMCHKUNPK(oduUnpackUInt16, &(macCellCfgCfm.cellId), mBuf); return (*func)(pst, &macCellCfgCfm); } else @@ -362,7 +364,7 @@ uint8_t packMacCellUpInd(Pst *pst, OduCellId *cellId) if(pst->selector == ODU_SELECTOR_LC) { - CMCHKPK(oduUnpackUInt16, cellId->cellId, mBuf); + CMCHKPK(oduPackUInt16, cellId->cellId, mBuf); CM_FREE_SHRABL_BUF(pst->region, pst->pool, cellId, sizeof(OduCellId)); cellId = NULL; } @@ -411,7 +413,7 @@ uint8_t unpackMacCellUpInd(DuMacCellUpInd func, Pst *pst, Buffer *mBuf) else if(pst->selector == ODU_SELECTOR_LC) { OduCellId cellId; - CMCHKUNPK(oduPackUInt16, &cellId.cellId, mBuf); + CMCHKUNPK(oduUnpackUInt16, &cellId.cellId, mBuf); ODU_PUT_MSG_BUF(mBuf); return (*func)(pst, &cellId); } @@ -453,7 +455,7 @@ uint8_t packMacStopInd(Pst *pst, OduCellId *cellId) if(pst->selector == ODU_SELECTOR_LC) { /*pack the payload here*/ - CMCHKPK(oduUnpackUInt16, cellId->cellId, mBuf); + CMCHKPK(oduPackUInt16, cellId->cellId, mBuf); CM_FREE_SHRABL_BUF(pst->region, pst->pool, cellId, sizeof(OduCellId)); cellId = NULL; } @@ -501,7 +503,7 @@ uint8_t unpackMacStopInd(DuMacStopInd func, Pst *pst, Buffer *mBuf) else if(pst->selector == ODU_SELECTOR_LC) { OduCellId cellId; - CMCHKUNPK(oduPackUInt16, &(cellId.cellId), mBuf); + CMCHKUNPK(oduUnpackUInt16, &(cellId.cellId), mBuf); ODU_PUT_MSG_BUF(mBuf); return (*func)(pst, &cellId);