Fix DU to CU RRC message encode
This commit is contained in:
@@ -60,7 +60,9 @@
|
||||
#define F1AP_MAX_NB_CELLS 2
|
||||
|
||||
#define F1AP_MAX_NO_OF_TNL_ASSOCIATIONS 32
|
||||
#define F1AP_MAX_NO_UE_ID 1024
|
||||
#define F1AP_MAX_NO_UE_ID 1024
|
||||
#define F1AP_MAX_DU2CU_RRC_LENGTH 1024
|
||||
|
||||
typedef struct f1ap_net_ip_address_s {
|
||||
unsigned ipv4:1;
|
||||
unsigned ipv6:1;
|
||||
@@ -307,7 +309,7 @@ typedef struct f1ap_initial_ul_rrc_message_s {
|
||||
uint16_t crnti;
|
||||
uint8_t *rrc_container;
|
||||
int rrc_container_length;
|
||||
char du2cu_rrc_container[200];
|
||||
char du2cu_rrc_container[F1AP_MAX_DU2CU_RRC_LENGTH];
|
||||
int du2cu_rrc_container_length;
|
||||
} f1ap_initial_ul_rrc_message_t;
|
||||
|
||||
|
||||
@@ -343,10 +343,10 @@ int8_t nr_mac_rrc_data_ind(const module_id_t module_idP,
|
||||
f1ap_initial_ul_rrc_message_t *msg = &F1AP_INITIAL_UL_RRC_MESSAGE(tmp);
|
||||
|
||||
asn_enc_rval_t enc_rval = uper_encode_to_buffer(&asn_DEF_NR_CellGroupConfig,
|
||||
NULL,
|
||||
(void *)&cellGroupConfig,
|
||||
msg->du2cu_rrc_container,
|
||||
1024); //sizeof(msg->du2cu_rrc_container));
|
||||
NULL,
|
||||
(void *)&cellGroupConfig,
|
||||
msg->du2cu_rrc_container,
|
||||
F1AP_MAX_DU2CU_RRC_LENGTH);
|
||||
|
||||
if (enc_rval.encoded == -1) {
|
||||
LOG_E(F1AP,"Could not encoded cellGroupConfig, failed element %s\n",enc_rval.failed_type->name);
|
||||
|
||||
Reference in New Issue
Block a user