X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cfg.c;h=ecc0cb47e7b45ddc81eb694e758a33f9b5e8227a;hb=0369d3e65bd88fbb4dc6314e8066d1578c6aaeaa;hp=036cb909e984403c6f3380cbb475be1d775b27e4;hpb=1b620310f1f4663032ce9c4f2cd23f2dd7ea9aa5;p=o-du%2Fl2.git diff --git a/src/du_app/du_cfg.c b/src/du_app/du_cfg.c index 036cb909e..ecc0cb47e 100644 --- a/src/du_app/du_cfg.c +++ b/src/du_app/du_cfg.c @@ -228,6 +228,30 @@ S16 readMacCfg() duCfgParam.macCellCfg.sib1Cfg.searchSpaceZeroIndex = SEARCHSPACE_0_INDEX; duCfgParam.macCellCfg.sib1Cfg.sib1Mcs = SIB1_MCS; + + /* fill Intial DL BWP */ + duCfgParam.macCellCfg.initialBwp.bwp.firstPrb = 0; + duCfgParam.macCellCfg.initialBwp.bwp.numPrb = TOTAL_PRB_BW; /* configured to total BW */ + duCfgParam.macCellCfg.initialBwp.bwp.scs = SUBCARRIER_SPACING; /* numerology is 0, 15Khz */ + duCfgParam.macCellCfg.initialBwp.bwp.cyclicPrefix = NORMAL_CYCLIC_PREFIX; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace.searchSpaceId = SEARCHSPACE_1_INDEX; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace.coresetId = CORESET_0_INDEX; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace.monitoringSlot = + SS_MONITORING_SLOT_SL1; /* sl1 - all slots */ + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace.duration = 0; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace.monitoringSymbol = + SS_MONITORING_SYMBOL; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace. + candidate.aggLevel1 = 8; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace. + candidate.aggLevel2 = 4; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace. + candidate.aggLevel4 = 2; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace. + candidate.aggLevel8 = 1; + duCfgParam.macCellCfg.initialBwp.pdcchCommon.raSearchSpace. + candidate.aggLevel16 = 0; + /* This should be calculated based on (number of mandatory parameters) + (number of otional parameters being filled) */ duCfgParam.macCellCfg.numTlv = 39; @@ -627,8 +651,8 @@ S16 readCfg() DU_LOG("\nDU_APP: Memory allocation failure"); return RFAILED; } - strcpy(duCfgParam.srvdCellLst[i].duSysInfo.mibMsg, encBuf); - duCfgParam.srvdCellLst[i].duSysInfo.mibLen = encBufSize; + strcpy((char *)duCfgParam.srvdCellLst[i].duSysInfo.mibMsg, encBuf); + duCfgParam.srvdCellLst[i].duSysInfo.mibLen = encBufSize; /*gnb DU System Info mib msg*/ BuildSib1Msg();