FH 7.2: ignore packets with no payload instead of asserting
This commit is contained in:
+4
-10
@@ -325,17 +325,15 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
pData = p_sec_desc->pData;
|
pData = p_sec_desc->pData;
|
||||||
ptr = pData;
|
ptr = pData;
|
||||||
pos = (int32_t *)(start_ptr + (4 * sym_idx * 4096));
|
pos = (int32_t *)(start_ptr + (4 * sym_idx * 4096));
|
||||||
|
if (ptr == NULL || pos == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
uint8_t *u8dptr;
|
|
||||||
struct xran_prb_map *pRbMap = pPrbMap;
|
struct xran_prb_map *pRbMap = pPrbMap;
|
||||||
AssertFatal(ptr != NULL, "ptr NULL\n");
|
|
||||||
AssertFatal(pos != NULL, "pos NULL\n");
|
|
||||||
if (1) {
|
|
||||||
uint32_t idxElm = 0;
|
uint32_t idxElm = 0;
|
||||||
u8dptr = (uint8_t *)ptr;
|
uint8_t *src = (uint8_t *)ptr;
|
||||||
int16_t payload_len = 0;
|
int16_t payload_len = 0;
|
||||||
|
|
||||||
uint8_t *src = (uint8_t *)u8dptr;
|
|
||||||
|
|
||||||
LOG_D(PHY, "pRbMap->nPrbElm %d\n", pRbMap->nPrbElm);
|
LOG_D(PHY, "pRbMap->nPrbElm %d\n", pRbMap->nPrbElm);
|
||||||
for (idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
for (idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
||||||
@@ -392,10 +390,6 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
} // sym_ind
|
} // sym_ind
|
||||||
} // ant_ind
|
} // ant_ind
|
||||||
} // vv_inf
|
} // vv_inf
|
||||||
|
|||||||
Reference in New Issue
Block a user