bugfix in setting ue tdd settings

This commit is contained in:
francescomani
2021-12-30 10:27:02 +01:00
parent b4c78a9c5b
commit f76aac6582
2 changed files with 2 additions and 3 deletions
@@ -11,7 +11,7 @@ gNBs =
# cell_type = "CELL_MACRO_GNB"; # cell_type = "CELL_MACRO_GNB";
gNB_name = "gNB-OAI"; gNB_name = "gNB-OAI";
min_rxtxtime_pdsch = 6; min_rxtxtime = 6;
// Tracking area code, 0x0000 and 0xfffe are reserved values // Tracking area code, 0x0000 and 0xfffe are reserved values
tracking_area_code = 1; tracking_area_code = 1;
+1 -2
View File
@@ -47,9 +47,8 @@ void set_tdd_config_nr_ue(fapi_nr_config_request_t *cfg,
int nrofUplinkSlots = tdd_config->pattern1.nrofUplinkSlots; int nrofUplinkSlots = tdd_config->pattern1.nrofUplinkSlots;
int nrofUplinkSymbols = tdd_config->pattern1.nrofUplinkSymbols; int nrofUplinkSymbols = tdd_config->pattern1.nrofUplinkSymbols;
int slot_number = 0; int slot_number = 0;
int nb_periods_per_frame = get_nb_periods_per_frame(cfg->tdd_table.tdd_period); int nb_periods_per_frame = get_nb_periods_per_frame(tdd_config->pattern1.dl_UL_TransmissionPeriodicity);
int nb_slots_to_set = TDD_CONFIG_NB_FRAMES*(1<<mu)*NR_NUMBER_OF_SUBFRAMES_PER_FRAME; int nb_slots_to_set = TDD_CONFIG_NB_FRAMES*(1<<mu)*NR_NUMBER_OF_SUBFRAMES_PER_FRAME;
int nb_slots_per_period = ((1<<mu) * NR_NUMBER_OF_SUBFRAMES_PER_FRAME)/nb_periods_per_frame; int nb_slots_per_period = ((1<<mu) * NR_NUMBER_OF_SUBFRAMES_PER_FRAME)/nb_periods_per_frame;
cfg->tdd_table.tdd_period_in_slots = nb_slots_per_period; cfg->tdd_table.tdd_period_in_slots = nb_slots_per_period;