This commit is contained in:
francescomani
2022-11-24 10:45:35 +01:00
parent 0dc4959741
commit 0f42998258
2 changed files with 11 additions and 3 deletions
+6 -3
View File
@@ -1412,8 +1412,9 @@ void config_csi_meas_report(NR_CSI_MeasConfig_t *csi_MeasConfig,
}
}
}
AssertFatal(resource_id>-1,"No resource for CSI measurements found\n");
AssertFatal(im_id>-1,"No resource for IM measurements found\n");
// if there are no associated resources, do not configure
if(resource_id < 0 || im_id < 0)
return;
csirep->resourcesForChannelMeasurement=resource_id;
csirep->csi_IM_ResourcesForInterference=calloc(1,sizeof(*csirep->csi_IM_ResourcesForInterference));
*csirep->csi_IM_ResourcesForInterference=im_id;
@@ -1474,7 +1475,9 @@ void conig_rsrp_meas_report(NR_CSI_MeasConfig_t *csi_MeasConfig,
}
}
}
AssertFatal(resource_id>-1,"No resource for RSRP found\n");
// if there are no associated resources, do not configure
if(resource_id < 0)
return;
csirep->resourcesForChannelMeasurement=resource_id;
csirep->csi_IM_ResourcesForInterference=NULL;
csirep->nzp_CSI_RS_ResourcesForInterference=NULL;
+5
View File
@@ -31,6 +31,9 @@
* @{
*/
#ifndef __NR_RRC_PROTO_H__
#define __NR_RRC_PROTO_H__
#include "RRC/NR/nr_rrc_defs.h"
#include "flexran_agent_extern.h"
#include "NR_RRCReconfiguration.h"
@@ -220,3 +223,5 @@ bool nr_rrc_pdcp_config_asn1_req(const protocol_ctxt_t *const ctxt_pP,
LTE_PMCH_InfoList_r9_t *pmch_InfoList_r9,
rb_id_t *const defaultDRB,
struct NR_CellGroupConfig__rlc_BearerToAddModList *rlc_bearer2add_list);
#endif