X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_phy.c;h=3def8a37468a4a0e41a0b0d0accc4d71c4b7c6f4;hb=f15bab416a36e421d42be3d2d1a42bf4c8c8b6c2;hp=3cb711d0585913e8617e8f0a5145bc6f898a015d;hpb=451e626d5ac7c7e7586bab23358161230449af46;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.c b/src/5gnrmac/lwr_mac_phy.c index 3cb711d05..3def8a374 100644 --- a/src/5gnrmac/lwr_mac_phy.c +++ b/src/5gnrmac/lwr_mac_phy.c @@ -17,8 +17,9 @@ *******************************************************************************/ /* This file contains APIs to send/receive messages from PHY */ +#include +#include -#include "stdio.h" #include "envdep.h" #include "ssi.h" @@ -27,37 +28,7 @@ EXTERN S16 rgClHndlCfgReq ARGS((void *msg)); -EXTERN void macToPhy ARGS((U16 msgType, U32 msgLen, void *msg)); -EXTERN void processRequest ARGS((U16 msgType, U32 msgLen, void *msg)); -/****************************************************************** - * - * @brief Receives message to PHY - * - * @details - * - * Function : phyToMac - * - * Functionality: - * -Receives Msg from PHY - * - * @params[in] Message Pointer - * - * @return void - * - ******************************************************************/ - -void phyToMac(U16 msgType, U32 msgLen,void *msg) -{ - switch(msgType) - { - case MSG_TYPE_CONFIG_RSP: - rgClHndlCfgReq(msg); - break; - - default: - printf("\nInvalid message type[%x] from PHY", msgType); - } -} +EXTERN void processFapiRequest ARGS((uint8_t msgType, uint32_t msgLen, void *msg)); /******************************************************************* * @@ -78,9 +49,9 @@ void phyToMac(U16 msgType, U32 msgLen,void *msg) * ******************************************************************/ -PUBLIC S16 sendToPhy(U16 msgType, U32 msgLen, void *msg) +PUBLIC void sendToPhy(uint8_t msgType, uint32_t msgLen, void *msg) { -#if 0 +#ifdef WLS_MEM S8 ret; void *pMsg; @@ -92,9 +63,11 @@ PUBLIC S16 sendToPhy(U16 msgType, U32 msgLen, void *msg) printf("\nFailure in sending message to PHY"); RETVALUE(RFAILED); } -#endif +#else - processRequest(msgType, msgLen, msg); + processFapiRequest(msgType, msgLen, msg); + +#endif } /**********************************************************************