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=2c14f2ba8b085e9de09c574a100efdbaaececa17;hb=0e69d52b90c5ba0c7c46830afbadb4615dee8161;hp=c3d33ae8ab5444beaf4f3717a06bec6c676e5652;hpb=e2417efa29f0d317a3ed1044ee20cc14df32e1d3;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 c3d33ae8a..2c14f2ba8 100644 --- a/src/phy_stub/phy_stub_msg_hdl.c +++ b/src/phy_stub/phy_stub_msg_hdl.c @@ -356,12 +356,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 { @@ -399,7 +404,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));