[Task-ID: ODUHIGH-455] Changes to support new L1 20.11
[o-du/l2.git] / src / phy_stub / phy_stub_thread_hdl.c
index 7699009..d1d3664 100644 (file)
@@ -21,7 +21,7 @@
 #include "common_def.h"
 #include "phy_stub_utils.h"
 #ifdef INTEL_FAPI
-#include "fapi.h"
+#include "nr5g_fapi_internal.h"
 #include "fapi_vendor_extension.h"
 #endif
 #include "phy_stub.h"
@@ -205,6 +205,18 @@ void *l1ConsoleHandler(void *args)
             }
          }
       }
+      else if(ch == 'r')
+      {
+         /* Trigger RACH Indication towards DU */
+         if(phyDb.ueDb.ueCb[phyDb.ueDb.numActvUe].rachIndSent == false)
+         {
+            phyDb.ueDb.ueCb[phyDb.ueDb.numActvUe].rachIndSent = true;
+            phyDb.ueDb.ueCb[phyDb.ueDb.numActvUe].isCFRA = true;
+            l1BuildAndSendRachInd(slotValue, sfnValue, CF_RA_PREAMBLE_IDX);
+            phyDb.ueDb.numActvUe++;
+         }
+
+      }
       DU_LOG("\n");
       continue;
    }