X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fphy_stub_msg_hdl.c;fp=src%2Fphy_stub%2Fphy_stub_msg_hdl.c;h=5e462f4bc1aaf977a829228d56a0f2038964e2cb;hb=e0ab592152182a8a00aa8e7968209d2c4152e1e9;hp=830333350a8a266a1a574413dfe7989b1e1eec55;hpb=d9f7fc765d1fc24949ec5536c2a4e3296b250e5a;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub_msg_hdl.c b/src/phy_stub/phy_stub_msg_hdl.c index 830333350..5e462f4bc 100644 --- a/src/phy_stub/phy_stub_msg_hdl.c +++ b/src/phy_stub/phy_stub_msg_hdl.c @@ -387,12 +387,17 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ GET_UE_ID(puschPdu.rnti, ueId); if(phyDb.ueDb.ueCb[ueId-1].isCFRA) { - /* In CF-RA in case of handover, RRC Reconfiguration Complete is sent - * by UE once RAR is received from DU */ - phyDb.ueDb.ueCb[ueId-1].ueId = ueId; - phyDb.ueDb.ueCb[ueId-1].crnti = puschPdu.rnti; - phyDb.ueDb.ueCb[ueId-1].msgRrcReconfigComp = true; - type = MSG_TYPE_RRC_RECONFIG_COMPLETE; + if(!phyDb.ueDb.ueCb[ueId-1].msgRrcReconfigComp) + { + /* In CF-RA in case of handover, RRC Reconfiguration Complete is sent + * by UE once RAR is received from DU */ + phyDb.ueDb.ueCb[ueId-1].ueId = ueId; + phyDb.ueDb.ueCb[ueId-1].crnti = puschPdu.rnti; + phyDb.ueDb.ueCb[ueId-1].msgRrcReconfigComp = true; + type = MSG_TYPE_RRC_RECONFIG_COMPLETE; + } + else + return ROK; } else { @@ -430,7 +435,7 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ type = MSG_TYPE_RRC_RECONFIG_COMPLETE; } else - return RFAILED; + return ROK; } MAC_ALLOC(rxDataInd, sizeof(fapi_rx_data_indication_t));