X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_cl_li.c;h=673fb05947bcc3c46a5fe6c8d7c2b2ccc2234243;hb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;hp=d41c17bb1f37b4815eb2e5b097f0924bae6cac1a;hpb=997e3f26d55352586a1d4d0c46c41a98452af88a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_cl_li.c b/src/5gnrmac/rg_cl_li.c index d41c17bb1..673fb0594 100644 --- a/src/5gnrmac/rg_cl_li.c +++ b/src/5gnrmac/rg_cl_li.c @@ -28,8 +28,9 @@ #include "cm_hash.x" #include "lcl.h" -#include "rg_cl.h" +#include "lwr_mac.h" #include "rg_cl_phy.h" +#include "fapi.h" /*#include "wls_lib.h"*/ EXTERN S16 sendToPhy ARGS((U16 msgType, U32 msgLen, void *msg)); @@ -275,6 +276,50 @@ S16 rgClHndlCfgReq(void *msg) RETVALUE(ROK); } +/******************************************************************* + * + * @brief Handles FAPI param response + * + * @details + * + * Function : lwrMacHndlParamReq + * + * Functionality: + * -Handles FAPI param request + * + * @params[in] Message pointer + * + * @return void + * + *****************************************************************/ +S16 lwrMacHndlParamReq(void *msg) +{ + ClCellCb *cellCb = NULLP; + fapi_param_resp_t *paramRsp; + + paramRsp = (fapi_param_resp_t *)msg; + + if(paramRsp->error_code != MSG_OK) + { + printf("\nPHY configuration failed"); + RETVALUE(RFAILED); + } + + if(paramRsp->tlvs[0].value == 0) + { + cellCb->phyState = PHY_STATE_IDLE; + clGlobalCp.phyState = PHY_STATE_IDLE; + } + + printf("\nReceived successful PHY configuration response"); + + SPutSBuf(0, 0, (Data *)msg, paramRsp->header.length); + + + RETVALUE(ROK); + +} + /********************************************************************** End of file **********************************************************************/