Commit 120dce3a authored by Jerome Peraldi's avatar Jerome Peraldi

Merge branch 'private/bugz128813' into 'sqn/3GPP_TTCN_System_Simulator'

do not enqueue time upd message to VTP task until VT is enabled

See merge request sequans/system/ttcn/openairinterface5g!17
parents be44675b 4762827c
...@@ -414,20 +414,21 @@ void NR_UL_indication(NR_UL_IND_t *UL_info) { ...@@ -414,20 +414,21 @@ void NR_UL_indication(NR_UL_IND_t *UL_info) {
LOG_E(NR_PHY, "[SS] Error in L1_Thread itti_send_msg_to_task"); LOG_E(NR_PHY, "[SS] Error in L1_Thread itti_send_msg_to_task");
} }
} }
if(RC.ss.vtp_ready == 1){
message_p = itti_alloc_new_message(TASK_VTP, INSTANCE_DEFAULT, SS_NRUPD_TIM_INFO);
if (message_p)
{
SS_NRUPD_TIM_INFO(message_p).slot = UL_info->slot;
SS_NRUPD_TIM_INFO(message_p).sfn = UL_info->frame;
message_p = itti_alloc_new_message(TASK_VTP, INSTANCE_DEFAULT, SS_NRUPD_TIM_INFO); int send_res = itti_send_msg_to_task(TASK_VTP, INSTANCE_DEFAULT, message_p);
if (message_p) if (send_res < 0)
{ {
SS_NRUPD_TIM_INFO(message_p).slot = UL_info->slot; LOG_E(NR_PHY, "[SS] Error in L1_Thread itti_send_msg_to_task");
SS_NRUPD_TIM_INFO(message_p).sfn = UL_info->frame; }
int send_res = itti_send_msg_to_task(TASK_VTP, INSTANCE_DEFAULT, message_p);
if (send_res < 0)
{
LOG_E(NR_PHY, "[SS] Error in L1_Thread itti_send_msg_to_task");
} }
}
}
} }
nfapi_nr_rach_indication_t *rach_ind = NULL; nfapi_nr_rach_indication_t *rach_ind = NULL;
......
...@@ -483,10 +483,11 @@ static void ss_gNB_wait_first_msg(void) ...@@ -483,10 +483,11 @@ static void ss_gNB_wait_first_msg(void)
if (virtualTime->Enable) { if (virtualTime->Enable) {
ss_gNB_vt_ena(); ss_gNB_vt_ena();
} }
break;
_ss_log_vt(virtualTime, " => (enable message) "); _ss_log_vt(virtualTime, " => (enable message) ");
acpSysVTEnquireTimingAckFreeSrv(virtualTime); acpSysVTEnquireTimingAckFreeSrv(virtualTime);
break;
} }
LOG_A(GNB_APP, "[SS_VTP] Waiting for First VT-ACK From Client(on-start) \n"); LOG_A(GNB_APP, "[SS_VTP] Waiting for First VT-ACK From Client(on-start) \n");
} }
......
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