Commit a45d496c authored by Bing-Kai Hong's avatar Bing-Kai Hong

Update F1 DL RRC message transfer from DU to CU

parent ebb9bbfa
......@@ -5,3 +5,4 @@
log/
lte_build_oai/
targets/bin/
cmake_targets/nas_sim_tools/build/
......@@ -187,15 +187,6 @@ int CU_send_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
uint8_t *buffer;
uint32_t len;
if (f1ap_stream == 0) {
LOG_E(CU_F1AP, "[CU %d] Received DL RRC message transfer on stream == %d\n",
f1ap_assoc_id, f1ap_stream);
return -1;
}
out = &pdu.choice.initiatingMessage->value.choice.DLRRCMessageTransfer;
/* Create */
/* 0. Message Type */
memset(&pdu, 0, sizeof(pdu));
......
......@@ -5762,13 +5762,9 @@ rrc_eNB_generate_RRCConnectionSetup(
case ngran_eNB_CU :
case ngran_ng_eNB_CU :
case ngran_gNB_CU :
// nothing to do for CU
break;
case ngran_eNB_DU :
case ngran_gNB_DU :
// create an ITTI message
/* TODO: F1 IDs ar missing in RRC */
message_p = itti_alloc_new_message (TASK_CU_F1, F1AP_DL_RRC_MESSAGE);
/* TODO: F1 IDs ar missing in RRC */
message_p = itti_alloc_new_message (TASK_RRC_ENB, F1AP_DL_RRC_MESSAGE);
memset (F1AP_DL_RRC_MESSAGE (message_p).rrc_container, 0, F1AP_DL_RRC_MESSAGE);
memcpy (F1AP_DL_RRC_MESSAGE (message_p).rrc_container,
(uint8_t*) ue_p->Srb0.Tx_buffer.Payload,
......@@ -5780,8 +5776,14 @@ rrc_eNB_generate_RRCConnectionSetup(
F1AP_DL_RRC_MESSAGE (message_p).srb_id = CCCH;
F1AP_DL_RRC_MESSAGE (message_p).execute_duplication = 1;
F1AP_DL_RRC_MESSAGE (message_p).RAT_frequency_priority_information.en_dc = 0;
itti_send_msg_to_task (TASK_RRC_ENB, UE_MODULE_ID_TO_INSTANCE(ctxt_pP->module_id), message_p);
itti_send_msg_to_task (TASK_CU_F1, UE_MODULE_ID_TO_INSTANCE(ctxt_pP->module_id), message_p);
LOG_E(RRC, "F1AP_DL_RRC_MESSAGE\n");
break;
case ngran_eNB_DU :
case ngran_gNB_DU :
// nothing to do for DU
LOG_E(RRC, "nothing to do for DU\n");
break;
case ngran_eNB:
case ngran_ng_eNB :
case ngran_gNB :
......
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