X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_demux.c;h=d244d5792b1ccc38fa4738caeca41ba3999c61e2;hb=8e65f271cc5bc90bc6a8d1adac108ab3bcdf75d1;hp=a54228dd5c1613a8c30494d5663ce8529c59260e;hpb=8133a1985d2c53074af88c44edfb9231af64b433;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_demux.c b/src/5gnrmac/mac_demux.c index a54228dd5..d244d5792 100644 --- a/src/5gnrmac/mac_demux.c +++ b/src/5gnrmac/mac_demux.c @@ -46,10 +46,11 @@ * ****************************************************************/ uint8_t unpackRxData(uint16_t cellId, SlotTimingInfo slotInfo, RxDataIndPdu *rxDataIndPdu) { + uint8_t ueId = 0; /* UE Identity */ uint8_t ueIdx = 0; /* Iterator for UE list */ uint8_t lcId = 0; /* LC ID of a sub pdu */ uint8_t fBit = 0; /* Value of F Bit in MAC sub-header */ - uint8_t rxPduIdx = 0; /* Iterator for received PDU */ + uint8_t rxPduIdx = 0; /* Iterator for received PDU */ uint16_t length = 0; /* Length of payload in a sub-PDU */ uint8_t *pdu = NULLP; /* Payload in sub-PDU */ uint16_t pduLen = 0; /* Length of undecoded PDU */ @@ -72,8 +73,8 @@ uint8_t unpackRxData(uint16_t cellId, SlotTimingInfo slotInfo, RxDataIndPdu *rxD } pduLen = rxDataIndPdu->pduLength; rxDataPdu = rxDataIndPdu->pduData; - GET_UE_IDX(rxDataIndPdu->rnti, ueIdx); - ueIdx = ueIdx -1; + GET_UE_ID(rxDataIndPdu->rnti, ueId); + ueIdx = ueId -1; while(pduLen > 0) {