X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_handle_phy.c;h=710b24bad89d04ecccf434101433dcced8af3346;hb=d2d9dcbd92e8f1be15dd5891aaf9ada9bc071e1a;hp=969a395b876c86b9a831e5b78e75e707a6d908bb;hpb=3360eb21f592bfe7249f501fa59ef8739b8589c2;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_handle_phy.c b/src/5gnrmac/lwr_mac_handle_phy.c index 969a395b8..710b24bad 100644 --- a/src/5gnrmac/lwr_mac_handle_phy.c +++ b/src/5gnrmac/lwr_mac_handle_phy.c @@ -44,6 +44,8 @@ #include "cm_mblk.x" /* Common LTE Defines */ #include "tfu.x" /* RGU Interface includes */ //#include "rg.x" +#include "lwr_mac.h" +#include "du_log.h" #ifdef FAPI /* function pointers for packing macCellCfg Request */ @@ -123,6 +125,12 @@ void handlePhyMessages(void *msg) { case FAPI_SLOT_INDICATION: { + if(clGlobalCp.phyState == PHY_STATE_CONFIGURED) + { + DU_LOG("\nLOWER MAC: PHY has moved to running state \n"); + clGlobalCp.phyState = PHY_STATE_RUNNING; + } + fapi_slot_ind_t *slotInd; slotInd = (fapi_slot_ind_t *)msg; handleSlotInd(slotInd);