X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=a02172406c1f38c6f6bfbdc5b8e68f3b864262b0;hb=3330932565e15a749fd5dd5039cdea2862ca51cc;hp=b36b0fe4cfd94ee8d15a30e8b9c15341f52aae22;hpb=6b44407d464a5a4e060999255233a7cfe78bb0fa;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index b36b0fe4c..a02172406 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -23,16 +23,16 @@ uint8_t packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd) { Buffer *mBuf = NULLP; - if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) + if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { return RFAILED; } /* pack SFN and slot value */ - CMCHKPK(SPkU16,slotInd->sfn, mBuf); - CMCHKPK(SPkU16,slotInd->slot, mBuf); + CMCHKPK(oduUnpackUInt16,slotInd->sfn, mBuf); + CMCHKPK(oduUnpackUInt16,slotInd->slot, mBuf); - return SPstTsk(pst,mBuf); + return ODU_POST_TASK(pst,mBuf); } /** @@ -130,7 +130,7 @@ uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd) * RFAILED - failure * * ****************************************************************/ -uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo) +uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo) { if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC)) { @@ -219,11 +219,11 @@ uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm) /******************************************************************* * - * @brief Pack and Send UE Create Request from MAC to SCH + * @brief Pack and Send UE Config Request from MAC to SCH * * @details * - * Function : packMacSchUeCreateReq + * Function : packMacSchAddUeConfigReq * * Functionality: * Pack and Send UE Create Request from MAC to SCH @@ -233,7 +233,7 @@ uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm) * RFAILED - failure * * ****************************************************************/ -uint8_t packMacSchUeCreateReq(Pst *pst, SchUeCfg *ueCfg) +uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfg) { if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) { @@ -327,7 +327,34 @@ uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd) return ROK; } - +/******************************************************************* + * + * @brief Pack and Send Modify UE Config Request from MAC to SCH + * + * @details + * + * Function : packMacSchModUeConfigReq + * + * Functionality: + * Pack and Send Modify UE Config Request from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfg) +{ + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; +} /********************************************************************** End of file