X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=c57f8ebe62cd67126e1e65ca63df5948f31b13f0;hb=e698840bb6fcecc68be5b1d1fd17436bd1d5e83f;hp=a02172406c1f38c6f6bfbdc5b8e68f3b864262b0;hpb=514d4c21e79d37636005186dd9ac5510742b7618;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index a02172406..c57f8ebe6 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -20,7 +20,7 @@ * @return S16 * -# ROK **/ -uint8_t packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd) +uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd) { Buffer *mBuf = NULLP; if (ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) @@ -268,7 +268,6 @@ uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp) { return ROK; } - /******************************************************************* * * @brief Pack and Send BSR from MAC to SCH @@ -356,6 +355,109 @@ uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfg) return ROK; } +/******************************************************************* +* +* @brief Pack and Send UE Delete Request from MAC to SCH +* +* @details +* +* Function : packMacSchUeDeleteReq +* +* Functionality: +* Pack and Send UE Delete Request from MAC to SCH +* +* @params[in] +* @return ROK - success +* RFAILED - failure +* +* ****************************************************************/ +uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel) +{ + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; +} + +/******************************************************************* +* +* @brief Packs and send UE delete response +* +* @details +* +* Function : packSchUeDeleteRsp +* +* Functionality: +* Packs and send UE delete response +* +* @params[in] Post structure +* UE delete response +* @return ROK - success +* RFAILED - failure +* +* ****************************************************************/ + +uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp) +{ + return ROK; +} + +/******************************************************************* + * + * @brief Pack and Send Cell Delete Request from MAC to SCH + * + * @details + * + * Function : packMacSchCellDeleteReq + * + * Functionality: + * Pack and Send Cell Delete Request from MAC to SCH + * + * @params[in] Pst *pst, SchCellDelete *schCellDelete + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete) +{ + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; +} + +/******************************************************************* + * + * @brief Packs and send CELL delete response + * + * @details + * + * Function : packSchCellDeleteRsp + * + * Functionality: + * * @params[in] Post structure, SchCellDeleteRsp schCellDeleteRsp + * + * @return ROK - success + * RFAILED - failure + * + * + * ****************************************************************/ + +uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp) +{ + return ROK; +} + /********************************************************************** End of file **********************************************************************/