<JIRA ID: ODUHIGH-354> Bug in RACH IND trigger 30/6630/3
authorlal.harshita <Harshita.Lal@radisys.com>
Thu, 26 Aug 2021 15:47:12 +0000 (21:17 +0530)
committerbarveankit <anbarve@radisys.com>
Fri, 27 Aug 2021 05:56:22 +0000 (11:26 +0530)
Change-Id: I939c193b08736120203a26378daec80474c3ae6f
Signed-off-by: lal.harshita <Harshita.Lal@radisys.com>
Signed-off-by: barveankit <anbarve@radisys.com>
src/phy_stub/phy_stub.h
src/phy_stub/phy_stub_msg_hdl.c

index 577a5ab..fab8712 100644 (file)
@@ -25,6 +25,9 @@
 #define MAX_SFN_VALUE    1023
 #define NR_PCI            1
 #define SLOT_DELAY       3
+/*UE Ids for RACH IND*/
+#define UE_IDX_0     0
+#define UE_IDX_1     1
 
 bool     slotIndicationStarted;
 uint16_t sfnValue;
index dd36140..8cd6217 100644 (file)
@@ -1042,18 +1042,18 @@ S16 l1HdlUlTtiReq(uint16_t msgLen, void *msg)
       numPdus--;
    }
 
-   if(ueDb.ueCb[ueDb.numActvUe].rachIndSent == false && ulTtiReq->sfn == 16 && ulTtiReq->slot == 6)
+   if(ueDb.ueCb[UE_IDX_0].rachIndSent == false && ulTtiReq->sfn == 16 && ulTtiReq->slot == 6)
    {
-      ueDb.ueCb[ueDb.numActvUe].rachIndSent = true;
+      ueDb.ueCb[UE_IDX_0].rachIndSent = true;
       l1BuildAndSendRachInd(ulTtiReq->slot, ulTtiReq->sfn);
       ueDb.numActvUe++;
    }
 
    //Following can be enabled to test with a second UE
 #if 0
-   if(ueDb.ueCb[ueDb.numActvUe].rachIndSent == false && ulTtiReq->sfn == 304 && ulTtiReq->slot == 0)
+   if(ueDb.ueCb[UE_IDX_1].rachIndSent == false && ulTtiReq->sfn == 304 && ulTtiReq->slot == 0)
    {
-      ueDb.ueCb[ueDb.numActvUe].rachIndSent = true;
+      ueDb.ueCb[UE_IDX_1].rachIndSent = true;
       l1BuildAndSendRachInd(ulTtiReq->slot, ulTtiReq->sfn);
       ueDb.numActvUe++;
    }