+ for (count = 0; count < gathered_count; count++) {
+ if (gather[count][GATHER_PDU_IDX] == p_fapi_pdu->pdu_index) {
+ found = TRUE;
+ break;
+ }
+ }
+
+ if (found) {
+ gather[count][GATHER_CW2] = idx;
+ } else {
+ if (gathered_count < FAPI_MAX_NUMBER_DL_PDUS_PER_TTI) {
+ gather[gathered_count][GATHER_PDU_IDX] = p_fapi_pdu->pdu_index;
+ gather[gathered_count][GATHER_CW1] = idx;
+ gathered_count++;
+ } else {
+ NR5G_FAPI_LOG(ERROR_LOG,
+ ("exceeded Max DL Pdus supported per tti: %d [%d] ",
+ gathered_count, FAPI_MAX_NUMBER_DL_PDUS_PER_TTI));
+ }
+ }
+ }
+
+ for (count = 0; count < gathered_count; count++) {
+ p_phy_pdu->nPduLen1 = 0;
+ p_phy_pdu->nPduLen2 = 0;
+ p_phy_pdu->pPayload1 = NULL;
+ p_phy_pdu->pPayload2 = NULL;
+ if (gather[count][GATHER_CW1] >= 0) {
+ p_fapi_pdu = &p_fapi_req->pdu_desc[gather[count][GATHER_CW1]];