X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_phy.h;h=456d8c5fa480c1049ab805911ae20e6095fce596;hb=efd3fd582205e5c94878e6bcae6d6282dd6f1d25;hp=ee1d65f811ceece4a8d3ad112a2c978357ff6634;hpb=528b3d3a09d7486a0c549820bac601db60fde18e;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_phy.h b/src/5gnrmac/lwr_mac_phy.h index ee1d65f81..456d8c5fa 100644 --- a/src/5gnrmac/lwr_mac_phy.h +++ b/src/5gnrmac/lwr_mac_phy.h @@ -33,7 +33,6 @@ typedef enum }ErrorCode; #ifdef INTEL_WLS_MEM -#define WLS_MEM_FREE_PRD 10 /* Free memory after 10 slot ind */ #define LWR_MAC_WLS_BUF_SIZE 32000 /* Size of WLS memory block */ #define EVT_START_WLS_RCVR 1 @@ -51,7 +50,10 @@ typedef enum /* free a static buffer from WLS memory*/ #define WLS_MEM_FREE(_datPtr, _size) \ if(_datPtr) \ - SPutSBufWls(0, 0, (Data *)_datPtr, _size); + { \ + SPutSBufWls(0, 0, (Data *)_datPtr, _size); \ + _datPtr = NULLP; \ + } typedef struct wlsBlockToFree { @@ -60,7 +62,6 @@ typedef struct wlsBlockToFree }WlsBlockToFree; CmLListCp wlsBlockToFreeList[WLS_MEM_FREE_PRD]; -uint8_t slotIndIdx; void freeWlsBlockList(uint8_t idx); void LwrMacEnqueueWlsBlock();