X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2F5gnrsch%2Fsch.c;h=0ef44b8ceecd17e583e9df39f15b8d95994ee86d;hb=a6e0e974ff223ae507ae646c354dcfb76d94a1ed;hp=fcc6490ee9a077b2c43bbe886f643e57d08a77e6;hpb=1b620310f1f4663032ce9c4f2cd23f2dd7ea9aa5;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch.c b/src/5gnrsch/sch.c index fcc6490ee..0ef44b8ce 100644 --- a/src/5gnrsch/sch.c +++ b/src/5gnrsch/sch.c @@ -421,13 +421,13 @@ uint8_t offsetPointA sib1SchCfg->n0 = slotIndex; /* calculate the PRBs */ - freqDomResourceAlloc((offsetPointA-offset),numRbs,FreqDomainResource); + freqDomResourceAlloc( ((offsetPointA-offset)/6), (numRbs/6), FreqDomainResource); /* fill the PDCCH PDU */ pdcch->sib1PdcchBwpCfg.BWPSize = MAX_NUM_RB; /* whole of BW */ pdcch->sib1PdcchBwpCfg.BWPStart = 0; - pdcch->subcarrierSpacing = 0; /* 15Khz */ - pdcch->cyclicPrefix = 0; /* normal */ + pdcch->sib1PdcchBwpCfg.subcarrierSpacing = 0; /* 15Khz */ + pdcch->sib1PdcchBwpCfg.cyclicPrefix = 0; /* normal */ pdcch->sib1Coreset0Cfg.startSymbolIndex = firstSymbol; pdcch->sib1Coreset0Cfg.durationSymbols = numSymbols; memcpy(pdcch->sib1Coreset0Cfg.freqDomainResource,FreqDomainResource,6);