Commit 71b8b853 authored by Manu Agrawal's avatar Manu Agrawal

5G L1 changes for Enquire Timing

parent 5f34c157
...@@ -245,24 +245,6 @@ void rx_func(void *param) { ...@@ -245,24 +245,6 @@ void rx_func(void *param) {
pthread_mutex_unlock(&gNB->UL_INFO_mutex); pthread_mutex_unlock(&gNB->UL_INFO_mutex);
stop_meas(&gNB->ul_indication_stats); stop_meas(&gNB->ul_indication_stats);
if (RC.ss.mode >= SS_SOFTMODEM)
{
MessageDef *message_p = itti_alloc_new_message(TASK_SYS_GNB, INSTANCE_DEFAULT, SS_NRUPD_TIM_INFO);
if (message_p)
{
SS_NRUPD_TIM_INFO(message_p).slot = gNB->UL_INFO.slot;
SS_NRUPD_TIM_INFO(message_p).sfn = gNB->UL_INFO.frame;
int send_res = itti_send_msg_to_task(TASK_SYS_GNB, INSTANCE_DEFAULT, message_p);
if (send_res < 0)
{
printf("Error in itti_send_msg_to_task");
// LOG_E( PHY, "[SS] Error in L1_Thread itti_send_msg_to_task"); /** TODO: Need separate logging for SS */
}
LOG_D(PHY, "[SS] SS_NRUPD_TIM_INFO from L1_Thread to SYS task itti_send_msg_to_task sfn %d slot %d",
gNB->UL_INFO.slot, gNB->UL_INFO.frame); /** TODO: Need separate logging for SS */
}
}
if (tx_slot_type == NR_DOWNLINK_SLOT || tx_slot_type == NR_MIXED_SLOT) { if (tx_slot_type == NR_DOWNLINK_SLOT || tx_slot_type == NR_MIXED_SLOT) {
notifiedFIFO_elt_t *res; notifiedFIFO_elt_t *res;
......
...@@ -389,6 +389,24 @@ void NR_UL_indication(NR_UL_IND_t *UL_info) { ...@@ -389,6 +389,24 @@ void NR_UL_indication(NR_UL_IND_t *UL_info) {
gnb_rx_ind_queue.num_items, gnb_rx_ind_queue.num_items,
gnb_crc_ind_queue.num_items); gnb_crc_ind_queue.num_items);
if (RC.ss.mode >= SS_SOFTMODEM)
{
MessageDef *message_p = itti_alloc_new_message(TASK_SYS_GNB, 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;
int send_res = itti_send_msg_to_task(TASK_SYS_GNB, INSTANCE_DEFAULT, message_p);
if (send_res < 0)
{
LOG_E(NR_PHY, "[SS] Error in L1_Thread itti_send_msg_to_task");
}
LOG_D(NR_PHY, "[SS] SS_NRUPD_TIM_INFO from L1_Thread to SYS task itti_send_msg_to_task sfn %d slot %d",
UL_info->frame, UL_info->slot);
}
}
nfapi_nr_rach_indication_t *rach_ind = NULL; nfapi_nr_rach_indication_t *rach_ind = NULL;
nfapi_nr_uci_indication_t *uci_ind = NULL; nfapi_nr_uci_indication_t *uci_ind = NULL;
nfapi_nr_rx_data_indication_t *rx_ind = NULL; nfapi_nr_rx_data_indication_t *rx_ind = NULL;
......
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