Commit 6f001d3e authored by Francesco Mani's avatar Francesco Mani

adapting handle rach function

parent 0ca708d5
...@@ -54,7 +54,6 @@ extern uint16_t sf_ahead; ...@@ -54,7 +54,6 @@ extern uint16_t sf_ahead;
extern uint16_t sl_ahead; extern uint16_t sl_ahead;
void handle_nr_rach(NR_UL_IND_t *UL_info) { void handle_nr_rach(NR_UL_IND_t *UL_info) {
if (UL_info->rach_ind.number_of_pdus>0) { if (UL_info->rach_ind.number_of_pdus>0) {
AssertFatal(UL_info->rach_ind.number_of_pdus==1,"More than 1 RACH pdu not supported\n"); AssertFatal(UL_info->rach_ind.number_of_pdus==1,"More than 1 RACH pdu not supported\n");
UL_info->rach_ind.number_of_pdus=0; UL_info->rach_ind.number_of_pdus=0;
...@@ -64,26 +63,19 @@ void handle_nr_rach(NR_UL_IND_t *UL_info) { ...@@ -64,26 +63,19 @@ void handle_nr_rach(NR_UL_IND_t *UL_info) {
AssertFatal(UL_info->rach_ind.pdu_list[0].num_preamble==1, AssertFatal(UL_info->rach_ind.pdu_list[0].num_preamble==1,
"More than 1 preamble not supported\n"); "More than 1 preamble not supported\n");
/* /*nr_initiate_ra_proc(UL_info->module_id,
initiate_ra_proc(UL_info->module_id,
UL_info->CC_id, UL_info->CC_id,
NFAPI_SFNSF2SFN(UL_info->rach_ind.sfn_sf), UL_info->rach_ind.sfn,
NFAPI_SFNSF2SF(UL_info->rach_ind.sfn_sf), UL_info->rach_ind.slot,
UL_info->rach_ind.rach_indication_body.preamble_list[0].preamble_rel8.preamble, UL_info->rach_ind.pdu_list[0].preamble_list[0].preamble_index,
UL_info->rach_ind.rach_indication_body.preamble_list[0].preamble_rel8.timing_advance, UL_info->rach_ind.pdu_list[0].freq_index,
UL_info->rach_ind.rach_indication_body.preamble_list[0].preamble_rel8.rnti UL_info->rach_ind.pdu_list[0].symbol_index,
#if (NR_RRC_VERSION >= MAKE_VERSION(14, 0, 0)) || (LTE_RRC_VERSION >= MAKE_VERSION(14, 0, 0)) UL_info->rach_ind.pdu_list[0].preamble_list[0].timing_advance);*/
//#if (RRC_VERSION >= MAKE_VERSION(14, 0, 0))
,0
#endif
);
*/
} }
} }
void handle_nr_sr(NR_UL_IND_t *UL_info) { void handle_nr_sr(NR_UL_IND_t *UL_info) {
......
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