X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=430e23a8316197cc2e9202e8491d7cc2817ca181;hb=ef723e2e773fc6a6dcff43005569e509201df198;hp=a02172406c1f38c6f6bfbdc5b8e68f3b864262b0;hpb=791615463ef2fcc0d6e0697d7860e6e6a56bd9a6;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index a02172406..430e23a83 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -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 **********************************************************************/