Commit 11577f6b authored by rmagueta's avatar rmagueta

Fix DU to CU RRC message encode

parent a1739a11
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
#define F1AP_MAX_NO_OF_TNL_ASSOCIATIONS 32 #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 { typedef struct f1ap_net_ip_address_s {
unsigned ipv4:1; unsigned ipv4:1;
unsigned ipv6:1; unsigned ipv6:1;
...@@ -307,7 +309,7 @@ typedef struct f1ap_initial_ul_rrc_message_s { ...@@ -307,7 +309,7 @@ typedef struct f1ap_initial_ul_rrc_message_s {
uint16_t crnti; uint16_t crnti;
uint8_t *rrc_container; uint8_t *rrc_container;
int rrc_container_length; int rrc_container_length;
char du2cu_rrc_container[200]; char du2cu_rrc_container[F1AP_MAX_DU2CU_RRC_LENGTH];
int du2cu_rrc_container_length; int du2cu_rrc_container_length;
} f1ap_initial_ul_rrc_message_t; } f1ap_initial_ul_rrc_message_t;
......
...@@ -346,7 +346,7 @@ int8_t nr_mac_rrc_data_ind(const module_id_t module_idP, ...@@ -346,7 +346,7 @@ int8_t nr_mac_rrc_data_ind(const module_id_t module_idP,
NULL, NULL,
(void *)&cellGroupConfig, (void *)&cellGroupConfig,
msg->du2cu_rrc_container, msg->du2cu_rrc_container,
1024); //sizeof(msg->du2cu_rrc_container)); F1AP_MAX_DU2CU_RRC_LENGTH);
if (enc_rval.encoded == -1) { if (enc_rval.encoded == -1) {
LOG_E(F1AP,"Could not encoded cellGroupConfig, failed element %s\n",enc_rval.failed_type->name); LOG_E(F1AP,"Could not encoded cellGroupConfig, failed element %s\n",enc_rval.failed_type->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment