crashes inside DU_send_UL_RRC_MESSAGE_TRANSFER
This commit is contained in:
@@ -209,7 +209,7 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
|
|||||||
LOG_I(RRC,
|
LOG_I(RRC,
|
||||||
"Logical Channel DL-CCCH (SRB0), Received RRCConnectionSetup DU_ID %x/RNTI %x\n",
|
"Logical Channel DL-CCCH (SRB0), Received RRCConnectionSetup DU_ID %x/RNTI %x\n",
|
||||||
du_ue_f1ap_id,
|
du_ue_f1ap_id,
|
||||||
f1ap_get_rnti_by_du_id(&f1ap_du_ue[0],du_ue_f1ap_id));
|
f1ap_get_rnti_by_du_id(&f1ap_du_ue[instance],du_ue_f1ap_id));
|
||||||
// Get configuration
|
// Get configuration
|
||||||
|
|
||||||
RRCConnectionSetup_t* rrcConnectionSetup = &dl_ccch_msg->message.choice.c1.choice.rrcConnectionSetup;
|
RRCConnectionSetup_t* rrcConnectionSetup = &dl_ccch_msg->message.choice.c1.choice.rrcConnectionSetup;
|
||||||
@@ -243,6 +243,20 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protocol_ctxt_t ctxt;
|
||||||
|
ctxt.rnti = f1ap_get_rnti_by_du_id(&f1ap_du_ue[instance],du_ue_f1ap_id);
|
||||||
|
ctxt.module_id = instance;
|
||||||
|
ctxt.enb_flag = 1;
|
||||||
|
rrc_rlc_config_asn1_req(&ctxt,
|
||||||
|
SRB_configList,
|
||||||
|
(DRB_ToAddModList_t*) NULL,
|
||||||
|
(DRB_ToReleaseList_t*) NULL
|
||||||
|
#if (RRC_VERSION >= MAKE_VERSION(9, 0, 0))
|
||||||
|
, (PMCH_InfoList_r9_t *) NULL,
|
||||||
|
0,0
|
||||||
|
# endif
|
||||||
|
);
|
||||||
|
|
||||||
// This should be somewhere in the f1ap_cudu_ue_inst_t
|
// This should be somewhere in the f1ap_cudu_ue_inst_t
|
||||||
int macrlc_instance = 0;
|
int macrlc_instance = 0;
|
||||||
|
|
||||||
@@ -318,7 +332,7 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
|
|||||||
int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
|
int DU_send_UL_RRC_MESSAGE_TRANSFER(instance_t instance,
|
||||||
f1ap_ul_rrc_message_t *f1ap_ul_rrc) {
|
f1ap_ul_rrc_message_t *f1ap_ul_rrc) {
|
||||||
|
|
||||||
LOG_D(DU_F1AP, "DU_send_UL_RRC_MESSAGE_TRANSFER \n");
|
LOG_I(DU_F1AP, "DU_send_UL_RRC_MESSAGE_TRANSFER \n");
|
||||||
|
|
||||||
F1AP_F1AP_PDU_t pdu;
|
F1AP_F1AP_PDU_t pdu;
|
||||||
F1AP_ULRRCMessageTransfer_t *out;
|
F1AP_ULRRCMessageTransfer_t *out;
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ rx_sdu(const module_id_t enb_mod_idP,
|
|||||||
//UE_list->UE_template[CC_idP][UE_id].estimated_ul_buffer += UE_list->UE_template[CC_idP][UE_id].estimated_ul_buffer / 4;
|
//UE_list->UE_template[CC_idP][UE_id].estimated_ul_buffer += UE_list->UE_template[CC_idP][UE_id].estimated_ul_buffer / 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_D(MAC,
|
LOG_I(MAC,
|
||||||
"[eNB %d] CC_id %d Frame %d : ULSCH -> UL-DCCH, received %d bytes form UE %d on LCID %d \n",
|
"[eNB %d] CC_id %d Frame %d : ULSCH -> UL-DCCH, received %d bytes form UE %d on LCID %d \n",
|
||||||
enb_mod_idP, CC_idP, frameP, rx_lengths[i], UE_id,
|
enb_mod_idP, CC_idP, frameP, rx_lengths[i], UE_id,
|
||||||
rx_lcids[i]);
|
rx_lcids[i]);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#include "UL-AM-RLC.h"
|
#include "UL-AM-RLC.h"
|
||||||
#include "DL-AM-RLC.h"
|
#include "DL-AM-RLC.h"
|
||||||
|
|
||||||
|
#define TRACE_RLC_AM_PDU 1
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
uint32_t
|
uint32_t
|
||||||
rlc_am_get_status_pdu_buffer_occupancy(
|
rlc_am_get_status_pdu_buffer_occupancy(
|
||||||
@@ -936,6 +936,7 @@ rlc_am_mac_data_indication (
|
|||||||
|
|
||||||
(void)l_rlc_p; /* avoid gcc warning "unused variable" */
|
(void)l_rlc_p; /* avoid gcc warning "unused variable" */
|
||||||
|
|
||||||
|
LOG_I(RLC, "In rlc_am_mac_indication: size %d\n",tb_size_in_bytes);
|
||||||
#if TRACE_RLC_AM_PDU || MESSAGE_CHART_GENERATOR
|
#if TRACE_RLC_AM_PDU || MESSAGE_CHART_GENERATOR
|
||||||
|
|
||||||
if (data_indP.data.nb_elements > 0) {
|
if (data_indP.data.nb_elements > 0) {
|
||||||
|
|||||||
@@ -665,15 +665,15 @@ void rlc_data_ind (
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
#if defined(TRACE_RLC_PAYLOAD)
|
//#if defined(TRACE_RLC_PAYLOAD)
|
||||||
LOG_D(RLC, PROTOCOL_CTXT_FMT"[%s %u] Display of rlc_data_ind: size %u\n",
|
LOG_I(RLC, PROTOCOL_CTXT_FMT"[%s %u] Display of rlc_data_ind: size %u\n",
|
||||||
PROTOCOL_CTXT_ARGS(ctxt_pP),
|
PROTOCOL_CTXT_ARGS(ctxt_pP),
|
||||||
(srb_flagP) ? "SRB" : "DRB",
|
(srb_flagP) ? "SRB" : "DRB",
|
||||||
rb_idP,
|
rb_idP,
|
||||||
sdu_sizeP);
|
sdu_sizeP);
|
||||||
|
|
||||||
rlc_util_print_hex_octets(RLC, (unsigned char*)sdu_pP->data, sdu_sizeP);
|
// rlc_util_print_hex_octets(RLC, (unsigned char*)sdu_pP->data, sdu_sizeP);
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
#if T_TRACER
|
#if T_TRACER
|
||||||
if (ctxt_pP->enb_flag)
|
if (ctxt_pP->enb_flag)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
#include "assertions.h"
|
#include "assertions.h"
|
||||||
#include "common/utils/LOG/vcd_signal_dumper.h"
|
#include "common/utils/LOG/vcd_signal_dumper.h"
|
||||||
|
|
||||||
//#define DEBUG_MAC_INTERFACE 1
|
#define DEBUG_MAC_INTERFACE 1
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
struct mac_data_ind mac_rlc_deserialize_tb (
|
struct mac_data_ind mac_rlc_deserialize_tb (
|
||||||
@@ -260,7 +260,7 @@ void mac_rlc_data_ind (
|
|||||||
#ifdef DEBUG_MAC_INTERFACE
|
#ifdef DEBUG_MAC_INTERFACE
|
||||||
|
|
||||||
if (num_tbP) {
|
if (num_tbP) {
|
||||||
LOG_D(RLC, PROTOCOL_CTXT_FMT" MAC_RLC_DATA_IND on channel %d (%d), rb max %d, Num_tb %d\n",
|
LOG_I(RLC, PROTOCOL_CTXT_FMT" MAC_RLC_DATA_IND on channel %d (%d), rb max %d, Num_tb %d\n",
|
||||||
PROTOCOL_CTXT_ARGS(&ctxt),
|
PROTOCOL_CTXT_ARGS(&ctxt),
|
||||||
channel_idP,
|
channel_idP,
|
||||||
RLC_MAX_LC,
|
RLC_MAX_LC,
|
||||||
@@ -292,7 +292,7 @@ void mac_rlc_data_ind (
|
|||||||
rlc_mode = rlc_union_p->mode;
|
rlc_mode = rlc_union_p->mode;
|
||||||
} else {
|
} else {
|
||||||
rlc_mode = RLC_MODE_NONE;
|
rlc_mode = RLC_MODE_NONE;
|
||||||
//AssertFatal (0 , "%s RLC not configured rb id %u lcid %u module %u!\n", __FUNCTION__, rb_id, channel_idP, ue_module_idP);
|
AssertFatal (0 , "%s RLC not configured lcid %u ! (h_rc %d)\n", __FUNCTION__,channel_idP,h_rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct mac_data_ind data_ind = mac_rlc_deserialize_tb(buffer_pP, tb_sizeP, num_tbP, crcs_pP);
|
struct mac_data_ind data_ind = mac_rlc_deserialize_tb(buffer_pP, tb_sizeP, num_tbP, crcs_pP);
|
||||||
|
|||||||
Reference in New Issue
Block a user