X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fphy_stub%2Fphy_stub_thread_hdl.c;h=0eed378c46568373d4d2e9181be0a4263d1309d2;hb=3ba126e9d0aff0ceca5012c27ffd4a3722fdbc4e;hp=29a4b0100fe8a99287ba67e96146e6f67ea1f01f;hpb=f191979f3454e08cc049af12d6323819730260ef;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..0eed378c4 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"); @@ -105,7 +110,6 @@ void GenerateTicks() void l1HdlSlotIndicaion(bool stopSlotInd) { Pst pst; - int ret; Buffer *mBuf = NULLP; if(!stopSlotInd)