X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2F5gnrmac%2Flwr_mac_phy.c;h=23571ae7e8cb85d10141a9a7e6f484df408aaebe;hb=531da47c7bfb6ce138a454f66eb184729860beef;hp=519de20fd2699a4377f6bcf09e0431d2127edb41;hpb=525b67cf153ba66b8901989cbba11347bebf13f7;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.c b/src/5gnrmac/lwr_mac_phy.c index 519de20fd..23571ae7e 100644 --- a/src/5gnrmac/lwr_mac_phy.c +++ b/src/5gnrmac/lwr_mac_phy.c @@ -25,13 +25,13 @@ #include "mac_sch_interface.h" #include "lwr_mac_upr_inf.h" #include "mac.h" -#include "lwr_mac_phy.h" #include "lwr_mac_fsm.h" +#include "lwr_mac_phy.h" #include "mac_utils.h" #include "lwr_mac_utils.h" #include "lwr_mac.h" #ifdef INTEL_FAPI -#include "fapi.h" +#include "nr5g_fapi_internal.h" #include "fapi_vendor_extension.h" #endif #ifdef INTEL_WLS_MEM @@ -227,7 +227,6 @@ void LwrMacRecvPhyMsg() continue; } - DU_LOG("\nDEBUG --> LWR_MAC : numMsgToGet %d", numMsgToGet); while(numMsgToGet--) { currElem = NULLP; @@ -275,6 +274,48 @@ uint8_t LwrMacSendToL1(void *msg) uint16_t msgLen =0; p_fapi_api_queue_elem_t currMsg = NULLP; +#ifdef CALL_FLOW_DEBUG_LOG + char message[100]; + + currMsg = (p_fapi_api_queue_elem_t)msg; + while(currMsg) + { + switch(currMsg->msg_type) + { + case FAPI_PARAM_REQUEST: + strcpy(message, "FAPI_PARAM_REQUEST"); + break; + case FAPI_CONFIG_REQUEST: + strcpy(message, "FAPI_CONFIG_REQUEST"); + break; + case FAPI_START_REQUEST: + strcpy(message, "FAPI_START_REQUEST"); + break; + case FAPI_DL_TTI_REQUEST: + strcpy(message, "FAPI_DL_TTI_REQUEST"); + break; + case FAPI_TX_DATA_REQUEST: + strcpy(message, "FAPI_TX_DATA_REQUEST"); + break; + case FAPI_UL_TTI_REQUEST: + strcpy(message, "FAPI_UL_TTI_REQUEST"); + break; + case FAPI_STOP_REQUEST: + strcpy(message, "FAPI_STOP_REQUEST"); + break; + case FAPI_UL_DCI_REQUEST: + strcpy(message, "FAPI_UL_DCI_REQUEST"); + break; + default: + strcpy(message, "INVALID_MSG"); + break; + } + DU_LOG("\nCall Flow: ENTLWRMAC -> PHY : %s\n",message); + currMsg = currMsg->p_next; + } +#endif + + #ifdef INTEL_WLS_MEM void * wlsHdlr = NULLP; @@ -283,7 +324,7 @@ uint8_t LwrMacSendToL1(void *msg) { currMsg = (p_fapi_api_queue_elem_t)msg; msgLen = currMsg->msg_len + sizeof(fapi_api_queue_elem_t); - addWlsBlockToFree(currMsg, msgLen, (slotIndIdx-1)); + addWlsBlockToFree(currMsg, msgLen, (lwrMacCb.phySlotIndCntr-1)); if(currMsg->p_next == NULLP) { DU_LOG("\nERROR --> LWR MAC : There cannot be only one block to send"); @@ -303,7 +344,7 @@ uint8_t LwrMacSendToL1(void *msg) { /* Sending the next msg */ msgLen = currMsg->msg_len + sizeof(fapi_api_queue_elem_t); - addWlsBlockToFree(currMsg, msgLen, (slotIndIdx-1)); + addWlsBlockToFree(currMsg, msgLen, (lwrMacCb.phySlotIndCntr-1)); if(currMsg->p_next != NULLP) { ret = WLS_Put(wlsHdlr, WLS_VA2PA(wlsHdlr, currMsg), msgLen, currMsg->msg_type, WLS_SG_NEXT);