- schCmnDlAlloc(cell, &dlBrdcstAlloc);
- //send msg to MAC
- ret = sendDlBrdcstAllocToMac(&dlBrdcstAlloc, schInst);
+
+ if(dlBrdcstAlloc->ssbTrans || dlBrdcstAlloc->sib1Trans)
+ {
+ dlAlloc.isBroadcastPres = true;
+ ret = schBroadcastAlloc(cell, dlBrdcstAlloc,slot);
+ if(ret != ROK)
+ {
+ DU_LOG("\nschBroadcastAlloc failed");
+ RETVALUE(ret);
+ }
+ }
+
+ /* check for RAR */
+ if(cell->dlAlloc[slot]->rarPres == true)
+ {
+ dlAlloc.isRarPres = true;
+ /* RAR info is copied, this was earlier filled in schProcessRachInd */
+ memcpy(&rarAlloc->rarInfo, &cell->dlAlloc[slot]->rarInfo, sizeof(RarInfo));
+
+ /* pdcch and pdsch data is filled */
+ schFillRar(rarAlloc,
+ cell->dlAlloc[slot]->rarInfo.raRnti,
+ cell->cellCfg.phyCellId,
+ cell->cellCfg.ssbSchCfg.ssbOffsetPointA);
+
+ cell->dlAlloc[slot]->rarPres = false;
+ }
+
+ /* send msg to MAC */
+ ret = sendDlAllocToMac(&dlAlloc, schInst);