Fixed memory error
This commit is contained in:
@@ -23,7 +23,7 @@ uint16_t frame_cnt=0;
|
|||||||
void handle_rach(UL_IND_t *UL_info) {
|
void handle_rach(UL_IND_t *UL_info) {
|
||||||
int i;
|
int i;
|
||||||
int j = UL_info->subframe;
|
int j = UL_info->subframe;
|
||||||
|
AssertFatal(j < sizeof(UL_RCC_INFO.rach_ind) / sizeof(UL_RCC_INFO.rach_ind[0]), "j index out of range of index of rach_ind\n");
|
||||||
if (NFAPI_MODE == NFAPI_MODE_VNF)
|
if (NFAPI_MODE == NFAPI_MODE_VNF)
|
||||||
{
|
{
|
||||||
if (UL_RCC_INFO.rach_ind[j].rach_indication_body.number_of_preambles > 0)
|
if (UL_RCC_INFO.rach_ind[j].rach_indication_body.number_of_preambles > 0)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ typedef struct {
|
|||||||
} UL_IND_t;
|
} UL_IND_t;
|
||||||
|
|
||||||
// Downlink subframe P7
|
// Downlink subframe P7
|
||||||
#define NUM_NFPAI_SUBFRAME 5
|
#define NUM_NFPAI_SUBFRAME 10
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/// harq indication list
|
/// harq indication list
|
||||||
nfapi_harq_indication_t harq_ind[NUM_NFPAI_SUBFRAME];
|
nfapi_harq_indication_t harq_ind[NUM_NFPAI_SUBFRAME];
|
||||||
|
|||||||
Reference in New Issue
Block a user