Commit 064035d8 authored by David Kim's avatar David Kim

Updated to emulate_l1 instead of nsa in gNB indication.

parent e3600128
...@@ -1099,8 +1099,9 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id, ...@@ -1099,8 +1099,9 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
const int8_t pid = sched_ctrl->feedback_dl_harq.head; const int8_t pid = sched_ctrl->feedback_dl_harq.head;
remove_front_nr_list(&sched_ctrl->feedback_dl_harq); remove_front_nr_list(&sched_ctrl->feedback_dl_harq);
/* According to nfapi_nr_interface_scf.h, harq_value = 0 is a pass /* According to nfapi_nr_interface_scf.h, harq_value = 0 is a pass
(The check below was for harq_value == 1 in the develop branch) */ (The check below was for harq_value == 1 in the develop branch)
if (get_softmodem_params()->nsa) TODO: After update in develop branch, the following condition will be updated.*/
if (get_softmodem_params()->emulate_l1)
handle_dl_harq(mod_id, UE_id, pid, harq_value == 0 && harq_confidence == 0); handle_dl_harq(mod_id, UE_id, pid, harq_value == 0 && harq_confidence == 0);
else else
handle_dl_harq(mod_id, UE_id, pid, harq_value == 1 && harq_confidence == 0); handle_dl_harq(mod_id, UE_id, pid, harq_value == 1 && harq_confidence == 0);
......
...@@ -73,7 +73,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info) ...@@ -73,7 +73,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
} }
NR_UL_IND_t UL_INFO; NR_UL_IND_t UL_INFO;
nfapi_nr_rach_indication_t *rach_ind = NULL; nfapi_nr_rach_indication_t *rach_ind = NULL;
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
if (gnb_rach_ind_queue.num_items == 0) if (gnb_rach_ind_queue.num_items == 0)
return; return;
...@@ -118,7 +118,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info) ...@@ -118,7 +118,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
UL_INFO.rach_ind.pdu_list[i].preamble_list[0].timing_advance); UL_INFO.rach_ind.pdu_list[i].preamble_list[0].timing_advance);
} }
} }
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
if (rach_ind && rach_ind->number_of_pdus > 0) if (rach_ind && rach_ind->number_of_pdus > 0)
{ {
...@@ -149,7 +149,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info) ...@@ -149,7 +149,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
NR_UL_IND_t UL_INFO; NR_UL_IND_t UL_INFO;
nfapi_nr_uci_indication_t *uci_ind = NULL; nfapi_nr_uci_indication_t *uci_ind = NULL;
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
if (gnb_uci_ind_queue.num_items == 0) if (gnb_uci_ind_queue.num_items == 0)
return; return;
...@@ -191,7 +191,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info) ...@@ -191,7 +191,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
} }
} }
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
for (int i = 0; i < num_ucis; i++) { for (int i = 0; i < num_ucis; i++) {
switch (uci_list[i].pdu_type) { switch (uci_list[i].pdu_type) {
...@@ -266,7 +266,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info) ...@@ -266,7 +266,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
NR_UL_IND_t UL_INFO; NR_UL_IND_t UL_INFO;
nfapi_nr_rx_data_indication_t *rx_ind = NULL; nfapi_nr_rx_data_indication_t *rx_ind = NULL;
nfapi_nr_crc_indication_t *crc_ind = NULL; nfapi_nr_crc_indication_t *crc_ind = NULL;
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
rx_ind = get_queue(&gnb_rx_ind_queue); rx_ind = get_queue(&gnb_rx_ind_queue);
if (!rx_ind) if (!rx_ind)
...@@ -353,7 +353,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info) ...@@ -353,7 +353,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
handle_nr_ul_harq(UL_INFO.CC_id, UL_INFO.module_id, UL_INFO.frame, UL_INFO.slot, crc); handle_nr_ul_harq(UL_INFO.CC_id, UL_INFO.module_id, UL_INFO.frame, UL_INFO.slot, crc);
break; break;
} // for (j=0;j<UL_INFO.crc_ind.number_crcs;j++) } // for (j=0;j<UL_INFO.crc_ind.number_crcs;j++)
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
int last = UL_INFO.crc_ind.number_crcs - 1; int last = UL_INFO.crc_ind.number_crcs - 1;
if (j < last) if (j < last)
...@@ -379,7 +379,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info) ...@@ -379,7 +379,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
} }
} }
} // for (i=0;i<UL_INFO.rx_ind.number_of_pdus;i++) } // for (i=0;i<UL_INFO.rx_ind.number_of_pdus;i++)
if (get_softmodem_params()->nsa) if (get_softmodem_params()->emulate_l1)
{ {
if (UL_INFO.crc_ind.number_crcs > 0) if (UL_INFO.crc_ind.number_crcs > 0)
{ {
......
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