X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fphy_stub_thread_hdl.c;h=4bdea81067c434ead4448454b5401bd32a8873c6;hb=c01ca171144bd6e576646466d420c6d5feaabc59;hp=29a4b0100fe8a99287ba67e96146e6f67ea1f01f;hpb=cbb5d8d83a41cbf191347d447a66c9cd062d4d81;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub_thread_hdl.c b/src/phy_stub/phy_stub_thread_hdl.c index 29a4b0100..4bdea8106 100644 --- a/src/phy_stub/phy_stub_thread_hdl.c +++ b/src/phy_stub/phy_stub_thread_hdl.c @@ -29,6 +29,7 @@ uint8_t l1SendUlUserData(); uint8_t l1SendStatusPdu(); uint16_t l1BuildAndSendSlotIndication(); +uint16_t l1BuildAndSendStopInd(); pthread_t thread = 0; /******************************************************************* @@ -65,7 +66,11 @@ void GenerateTicks() { clock_nanosleep(CLOCK_REALTIME, 0, &req, NULL); /* Send Slot indication indication to lower mac */ - l1BuildAndSendSlotIndication(); + if(l1BuildAndSendSlotIndication() != ROK) + { + DU_LOG("\nERROR --> PHY_STUB : GenerateTicks(): Failed to build and send Slot Indication"); + return; + } } DU_LOG("\nINFO --> PHY_STUB : Slot indication stopped"); @@ -73,14 +78,7 @@ void GenerateTicks() /* Initialize all global variables */ sfnValue = 0; slotValue = 0; - rachIndSent = false; - msg3Sent = false; - msg5ShortBsrSent = false; - msg5Sent = false; - dlDedMsg = false; - msgSecurityModeComp = false; - msgRrcReconfiguration = false; - msgRegistrationComp = false; + memset(&ueDb, 0, sizeof(UeDb)); /* Send Stop indication to MAC */ sleep(1); @@ -105,7 +103,6 @@ void GenerateTicks() void l1HdlSlotIndicaion(bool stopSlotInd) { Pst pst; - int ret; Buffer *mBuf = NULLP; if(!stopSlotInd)