-PUBLIC S16 macStubSendDlData(Pst *pst, SpId spId, RlcMacData *dlData)
-{
- U32 availmem;
-
- Pst rspPst;
- Buffer *mBuf;
- RlcMacData *ulData;
-
- DU_LOG("\nMAC_STUB : Received DL data from RLC to be sent to PHY");
-
- SPutMsg(dlData->pduInfo[0].pduBuf);
- dlData->pduInfo[0].pduBuf = NULL;
-
-#if 0
- KW_FREE_SHRABL_BUF(pst->region, pst->pool,
- dlData, sizeof(RlcMacData));
-{
- KW_ALLOC_SHRABL_BUF(pst->region, pst->pool,
- ulData, sizeof(RlcMacData));
-
- SRegInfoShow(2, &availmem);
- cmMemcpy((U8 *)ulData, (U8 *)dlData, sizeof(RlcMacData));
-#endif
-
- ulData = dlData;
- SGetMsg(pst->region, pst->pool, &mBuf);
- macStubBuildUlData(mBuf);
- ulData->pduInfo[0].pduBuf = mBuf;
-
- /* Fill response post */
- rspPst.selector = ODU_SELECTOR_TC;
- rspPst.srcEnt = pst->dstEnt;
- rspPst.dstEnt = pst->srcEnt;
- rspPst.dstInst = pst->srcInst;
- rspPst.dstProcId = pst->srcProcId;
- rspPst.srcProcId = pst->dstProcId;
- rspPst.region = pst->region;
- rspPst.pool = pst->pool;
-
- ulDatNum++;
- DU_LOG("\nMAC_STUB : UL data number %d", ulDatNum);
- RlcMacProcUlData(&rspPst, 1, ulData);
- return ROK;
-}