X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_phy.c;h=c927a5c6fe140744cd924c7e2706a8d4a7350d77;hb=0381f5c0027b27b357afa0c02f157fc1de85f2a8;hp=1b6d0c96864fb80bad88508374ba017ecc57fe97;hpb=9634ca974c4418c0800090e33d37ef1fe7e8cb30;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.c b/src/5gnrmac/lwr_mac_phy.c index 1b6d0c968..c927a5c6f 100644 --- a/src/5gnrmac/lwr_mac_phy.c +++ b/src/5gnrmac/lwr_mac_phy.c @@ -29,6 +29,7 @@ #include "lwr_mac_fsm.h" #include "mac_utils.h" #include "lwr_mac_utils.h" +#include "lwr_mac.h" #ifdef INTEL_FAPI #include "fapi.h" #include "fapi_vendor_extension.h" @@ -214,7 +215,6 @@ void LwrMacRecvPhyMsg() uint16_t msgType; uint16_t flag = 0; p_fapi_api_queue_elem_t currElem = NULLP; - struct timeval time; mtGetWlsHdl(&wlsHdlr); if(WLS_Ready(wlsHdlr) == 0) @@ -253,41 +253,13 @@ void LwrMacRecvPhyMsg() #endif /* INTEL_WLS_MEM */ -/******************************************************************* - * - * @brief Sends message to PHY Stub - * - * @details - * - * Function : LwrMacSendToPhy - * Functionality: - * -Sends message to PHY Stub - * -Once super header and vendor specific message is - * implemented for all FAPI messages, this function - * can be deleted. LwrMacSendToFapi() should be used. - * - * @params[in] Message Type - * Message Length - * Messaga Pointer - * - * @return void - * - * *****************************************************************/ - -uint8_t LwrMacSendToPhy(uint8_t msgType, uint32_t msgLen, void *msg) -{ - l1ProcessFapiRequest(msgType, msgLen, msg); - return ROK; -} /* LwrMacSendToPhy */ - - /******************************************************************* * * @brief Send FAPI messages to Intel PHY/Phy stub * * @details * - * Function : LwrMacSendToFapi + * Function : LwrMacSendToL1 * * Functionality: Send FAPI messages to Intel PHY/Phy stub * @@ -296,7 +268,7 @@ uint8_t LwrMacSendToPhy(uint8_t msgType, uint32_t msgLen, void *msg) * RFAILED - failure * * ****************************************************************/ -uint8_t LwrMacSendToFapi(void *msg) +uint8_t LwrMacSendToL1(void *msg) { uint8_t ret = ROK; #ifdef INTEL_FAPI @@ -372,7 +344,7 @@ uint8_t LwrMacSendToFapi(void *msg) } else { - MAC_FREE(currMsg, msgLen); + LWR_MAC_FREE(currMsg, msgLen); } currMsg = nextMsg; }