X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_crc.c;h=406d67f4fbc20f5b4a8bc9e9524ca1d5c1b23902;hb=6bd517aac8dc6e3166389be3f468c58ba56d5608;hp=4aa9f81c1c0fcf92108af8b099bcf130fab1de99;hpb=ba99af5e5ea60b0d8eede9f3323fc9a9991fcfe3;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_crc.c b/src/5gnrsch/sch_crc.c index 4aa9f81c1..406d67f4f 100644 --- a/src/5gnrsch/sch_crc.c +++ b/src/5gnrsch/sch_crc.c @@ -76,35 +76,38 @@ uint8_t schProcessCrcInd(CrcIndInfo *crcInd, Inst schInst) } else { - if (cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.count == 0) + if(cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]) { - DU_LOG("\n ERROR no harq stored in ul hq map at slot %d ue id %d\n",crcInd->timingInfo.slot, ueId); - continue; - } - if (cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.first == 0) - { - DU_LOG("\n ERROR NULL harq stored in ul hq map at slot %d ue id %d\n",crcInd->timingInfo.slot, ueId); - continue; - } - hqP = (SchUlHqProcCb*) cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.first->node; - if(hqP == NULLP) - { - continue; - } - else - { - if (crcInd->crcInd[count]) - { - /* failure case*/ - schUlHqProcessNack(hqP); + if (cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.count == 0) + { + DU_LOG("\n ERROR no harq stored in ul hq map at slot %d ue id %d\n",crcInd->timingInfo.slot, ueId); + continue; + } + if (cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.first == 0) + { + DU_LOG("\n ERROR NULL harq stored in ul hq map at slot %d ue id %d\n",crcInd->timingInfo.slot, ueId); + continue; + } + hqP = (SchUlHqProcCb*) cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList.first->node; + if(hqP == NULLP) + { + continue; } else { - /* pass case*/ - schUlHqProcessAck(hqP); + if (crcInd->crcInd[count]) + { + /* failure case*/ + schUlHqProcessNack(hqP); + } + else + { + /* pass case*/ + schUlHqProcessAck(hqP); + } } + cmLListDelFrm(&(cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList), &hqP->ulSlotLnk); } - cmLListDelFrm(&(cell->ueCb[ueId-1].hqUlmap[crcInd->timingInfo.slot]->hqList), &hqP->ulSlotLnk); } count++; } @@ -112,4 +115,4 @@ uint8_t schProcessCrcInd(CrcIndInfo *crcInd, Inst schInst) } /********************************************************************** End of file - **********************************************************************/ \ No newline at end of file + **********************************************************************/