From: Harshita Lal Date: Wed, 2 Nov 2022 13:48:29 +0000 (+0000) Subject: Merge "[Epic-ID: ODUHIGH-475][Task-ID: ODUHIGH-476]Integration fixes upto PRACH sched... X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=ba99af5e5ea60b0d8eede9f3323fc9a9991fcfe3;hp=3eb33bcb19a8e47fcf8b58b417d6fa05919952cf;p=o-du%2Fl2.git Merge "[Epic-ID: ODUHIGH-475][Task-ID: ODUHIGH-476]Integration fixes upto PRACH scheduling in FDD" --- diff --git a/src/5gnrsch/sch_rach.c b/src/5gnrsch/sch_rach.c index 162ed15f6..8a81745fd 100644 --- a/src/5gnrsch/sch_rach.c +++ b/src/5gnrsch/sch_rach.c @@ -375,10 +375,8 @@ uint16_t calculateRaRnti(uint8_t symbolIdx, uint8_t slotIdx, uint8_t freqIdx) * @param[in] shed instance * @return void **/ -void createSchRaCb(SchRaReq *raReq, Inst schInst) +void createSchRaCb(uint8_t ueId, SchRaReq *raReq, Inst schInst) { - uint8_t ueId = 0; - if(raReq->isCFRA) { /* If a UE in handover has triggered CFRA, its UE CB context is already present in SCH, @@ -760,7 +758,7 @@ bool schProcessRaReq(Inst schInst, SchCellCb *cell, SlotTimingInfo currTime, uin cell->schUlSlotInfo[msg3Time.slot]->puschUe = ueId; /* Create raCb at SCH */ - createSchRaCb(cell->raReq[ueId-1], schInst); + createSchRaCb(ueId, cell->raReq[ueId-1], schInst); /* Remove RachInd from pending RA request list */ SCH_FREE(cell->raReq[ueId-1]->rachInd, sizeof(RachIndInfo)); diff --git a/src/du_app/du_sys_info_hdl.c b/src/du_app/du_sys_info_hdl.c index 080ccf16d..b0ece73fe 100644 --- a/src/du_app/du_sys_info_hdl.c +++ b/src/du_app/du_sys_info_hdl.c @@ -2869,7 +2869,7 @@ void FreePuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCfg) /* P0 Nominal with grant */ DU_FREE(setup->p0_NominalWithGrant, sizeof(long)); - DU_ALLOC(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t)); + DU_FREE(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t)); } }/* BuildPuschCfgCommon */ diff --git a/src/du_app/du_ue_mgr.c b/src/du_app/du_ue_mgr.c index 7900c625b..b77b231a8 100644 --- a/src/du_app/du_ue_mgr.c +++ b/src/du_app/du_ue_mgr.c @@ -1279,6 +1279,7 @@ uint8_t fillMacUeCfg(uint16_t cellId, uint8_t gnbDuUef1apId, uint16_t crnti, DuU fillDefaultPhyCellGrpInfo(macUeCfg); fillDefaultSpCellGrpInfo(macUeCfg); fillDefaultModulation(macUeCfg); + macUeCfg->ambrCfg = NULLP; } #ifdef NR_DRX