X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_ue_mgr.c;h=862f3dabd2efe912c01aeec9bf87643457831730;hb=42e50f5a3e46d7ca3afe97907b39d2a0c79a21c2;hp=cea930536b26e49eca0ea738935897691f527ef5;hpb=52ca0cf30806914e2f44054932cd2300f12aded8;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_ue_mgr.c b/src/5gnrmac/mac_ue_mgr.c index cea930536..862f3dabd 100644 --- a/src/5gnrmac/mac_ue_mgr.c +++ b/src/5gnrmac/mac_ue_mgr.c @@ -1215,8 +1215,10 @@ uint8_t fillInitDlBwpPdcchCfg(PdcchConfig macPdcchCfg, SchPdcchConfig *schPdcchC macPdcchCfg.searchSpcToAddModList[idx].searchSpaceId; schPdcchCfg->searchSpcToAddModList[idx].cRSetId = \ macPdcchCfg.searchSpcToAddModList[idx].cRSetId; - schPdcchCfg->searchSpcToAddModList[idx].mSlotPeriodicityAndOffset = \ - macPdcchCfg.searchSpcToAddModList[idx].mSlotPeriodicityAndOffset; + schPdcchCfg->searchSpcToAddModList[idx].mSlotPeriodicityAndOffset.mSlotPeriodicity = \ + macPdcchCfg.searchSpcToAddModList[idx].mSlotPeriodicityAndOffset.mSlotPeriodicity; + schPdcchCfg->searchSpcToAddModList[idx].mSlotPeriodicityAndOffset.mSlotOffset = + macPdcchCfg.searchSpcToAddModList[idx].mSlotPeriodicityAndOffset.mSlotOffset; memcpy(&schPdcchCfg->searchSpcToAddModList[idx].mSymbolsWithinSlot, &macPdcchCfg.searchSpcToAddModList[idx].mSymbolsWithinSlot, \ MONITORING_SYMB_WITHIN_SLOT_SIZE); @@ -1841,7 +1843,6 @@ uint8_t fillSchUeCfg(SchUeCfgReq *schUeCfg, MacUeCreateReq *ueCfg) uint8_t ret = ROK; schUeCfg->cellId = ueCfg->cellId; - schUeCfg->ueId = ueCfg->ueId; schUeCfg->crnti = ueCfg->crnti; /* Copy MAC cell group config */ if(ueCfg->macCellGrpCfgPres == true) @@ -1932,7 +1933,6 @@ uint8_t fillSchUeRecfg(SchUeRecfgReq *schUeRecfg, MacUeRecfg *ueRecfg) uint8_t ret = ROK; schUeRecfg->cellId = ueRecfg->cellId; - schUeRecfg->ueId = ueRecfg->ueId; schUeRecfg->crnti = ueRecfg->crnti; schUeRecfg->dataTransmissionInfo = ueRecfg->transmissionAction; /* Copy MAC cell group config */ @@ -2838,7 +2838,7 @@ uint8_t MacSendUeCreateRsp(MacRsp result, SchUeCfgRsp *schCfgRsp) /* Filling UE Config response */ memset(cfgRsp, 0, sizeof(MacUeCreateRsp)); cfgRsp->cellId = schCfgRsp->cellId; - cfgRsp->ueId = schCfgRsp->ueId; + GET_UE_ID(schCfgRsp->crnti, cfgRsp->ueId); cfgRsp->result = result; /* Fill Post structure and send UE Create response*/ @@ -2878,7 +2878,7 @@ uint8_t MacSendUeReconfigRsp(MacRsp result, SchUeRecfgRsp *schCfgRsp) /* Filling UE Config response */ memset(recfgRsp, 0, sizeof(MacUeRecfgRsp)); recfgRsp->cellId = schCfgRsp->cellId; - recfgRsp->ueId = schCfgRsp->ueId; + GET_UE_ID(schCfgRsp->crnti, recfgRsp->ueId); recfgRsp->result = result; /* Fill Post structure and send UE Create response*/ @@ -2973,7 +2973,7 @@ uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *schCfgRsp) { uint8_t result = MAC_DU_APP_RSP_NOK; uint8_t ret = ROK; - uint16_t cellIdx; + uint16_t cellIdx = 0, ueId = 0; MacUeCreateReq *ueCfg = NULLP; #ifdef CALL_FLOW_DEBUG_LOG @@ -2992,7 +2992,8 @@ uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *schCfgRsp) #endif GET_CELL_IDX(schCfgRsp->cellId, cellIdx); - ueCfg = getMacUeCfg(cellIdx, schCfgRsp->ueId); + GET_UE_ID(schCfgRsp->crnti, ueId); + ueCfg = getMacUeCfg(cellIdx, ueId); if(ueCfg == NULLP) { DU_LOG("\nERROR --> MAC : Failed to find the Mac Ue Cfg for event [%d] in MacProcSchUeCfgRsp()", pst->event); @@ -3043,7 +3044,7 @@ uint8_t MacProcSchUeRecfgRsp(Pst *pst, SchUeRecfgRsp *schRecfgRsp) { uint8_t result = MAC_DU_APP_RSP_NOK; uint8_t ret = ROK; - uint16_t cellIdx; + uint16_t cellIdx = 0, ueId = 0; MacUeRecfg *ueRecfg = NULLP; #ifdef CALL_FLOW_DEBUG_LOG @@ -3059,7 +3060,8 @@ uint8_t MacProcSchUeRecfgRsp(Pst *pst, SchUeRecfgRsp *schRecfgRsp) #endif GET_CELL_IDX(schRecfgRsp->cellId, cellIdx); - ueRecfg = getMacUeRecfg(cellIdx, schRecfgRsp->ueId); + GET_UE_ID(schRecfgRsp->crnti, ueId); + ueRecfg = getMacUeRecfg(cellIdx, ueId); if(ueRecfg == NULLP) { DU_LOG("\nERROR --> MAC : Failed to find the Mac Ue Cfg for event [%d] in MacProcSchUeCfgRsp()", pst->event);