Change-Id: I939c193b08736120203a26378daec80474c3ae6f
Signed-off-by: lal.harshita <Harshita.Lal@radisys.com>
Signed-off-by: barveankit <anbarve@radisys.com>
#define MAX_SFN_VALUE 1023
#define NR_PCI 1
#define SLOT_DELAY 3
#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;
bool slotIndicationStarted;
uint16_t sfnValue;
- 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
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++;
}
l1BuildAndSendRachInd(ulTtiReq->slot, ulTtiReq->sfn);
ueDb.numActvUe++;
}