X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch.c;h=42146731b360bdc77321a93aa6e4f5e085c785ae;hb=176a9131121aa261c0205c524c8158b3db724b12;hp=0ef44b8ceecd17e583e9df39f15b8d95994ee86d;hpb=d2087c85ac86d4ffb898e87aecc1495510ef9c68;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch.c b/src/5gnrsch/sch.c index 0ef44b8ce..42146731b 100644 --- a/src/5gnrsch/sch.c +++ b/src/5gnrsch/sch.c @@ -428,6 +428,7 @@ uint8_t offsetPointA pdcch->sib1PdcchBwpCfg.BWPStart = 0; pdcch->sib1PdcchBwpCfg.subcarrierSpacing = 0; /* 15Khz */ pdcch->sib1PdcchBwpCfg.cyclicPrefix = 0; /* normal */ + pdcch->sib1Coreset0Cfg.coreSet0Size = numRbs; pdcch->sib1Coreset0Cfg.startSymbolIndex = firstSymbol; pdcch->sib1Coreset0Cfg.durationSymbols = numSymbols; memcpy(pdcch->sib1Coreset0Cfg.freqDomainResource,FreqDomainResource,6); @@ -450,6 +451,9 @@ uint8_t offsetPointA pdcch->sib1DlDci.beamPdcchInfo.prg[0].beamIdx[0] = 0; pdcch->sib1DlDci.txPdcchPower.powerValue = 0; pdcch->sib1DlDci.txPdcchPower.powerControlOffsetSS = 0; + /* Storing pdschCfg pointer here. Required to access pdsch config while + fillig up pdcch pdu */ + pdcch->sib1DlDci.pdschCfg = pdsch; /* fill the PDSCH PDU */ uint8_t cwCount = 0; @@ -486,6 +490,7 @@ uint8_t offsetPointA * Nre = min(156,Nre') . nPrb */ pdsch->sib1FreqAlloc.rbSize = 10; /* This value is calculated from above formulae */ pdsch->sib1FreqAlloc.vrbPrbMapping = 0; /* non-interleaved */ + pdsch->sib1TimeAlloc.rowIndex = 1; pdsch->sib1TimeAlloc.startSymbolIndex = 2; /* spec-38.214, Table 5.1.2.1-1 */ pdsch->sib1TimeAlloc.numSymbols = 12; pdsch->beamPdschInfo.numPrgs = 1; @@ -528,7 +533,6 @@ SchCellCfg *schCellCfg InitSchCellCb(inst, schCellCfg); cellCb = schCb[inst].cells[inst]; //cells is of MAX_CELLS, why inst cellCb->macInst = pst->srcInst; - memcpy(&cellCb->cellCfg, schCellCfg, sizeof(SchCellCfg)); /* derive the SIB1 config parameters */ fillSchSib1Cfg( @@ -536,6 +540,7 @@ SchCellCfg *schCellCfg &(schCellCfg->sib1SchCfg), schCellCfg->phyCellId, schCellCfg->ssbSchCfg.ssbOffsetPointA); + memcpy(&cellCb->cellCfg, schCellCfg, sizeof(SchCellCfg)); memset(&rspPst, 0, sizeof(Pst)); SCH_FILL_RSP_PST(rspPst, inst);