nr_slot_select() and set_tdd_config_nr(): remove useless second frame
FAPI says these lists should be for MAX_TDD_PERIODICITY (which is maybe a frame, or a TDD period? but likely not two frames). Reduce to one frame. Also, the nFAPI code assumes one entire frame, so use that (this commit necessary to actually make the PNF work, otherwise, the packing/unpacking of the FAPI message would need to do 2 frames). Closes: #876
This commit is contained in:
@@ -43,7 +43,7 @@ void sl_ue_mac_free(NR_UE_MAC_INST_t *mac)
|
||||
// @todo: maybe this should be done by phy
|
||||
if (tdd_list) {
|
||||
int mu = sl_config->sl_bwp_config.sl_scs;
|
||||
int nb_slots_to_set = TDD_CONFIG_NB_FRAMES*(1<<mu)*NR_NUMBER_OF_SUBFRAMES_PER_FRAME;
|
||||
int nb_slots_to_set = (1 << mu) * NR_NUMBER_OF_SUBFRAMES_PER_FRAME;
|
||||
for (int i=0; i<nb_slots_to_set; i++) {
|
||||
free_and_zero(tdd_list[i].max_num_of_symbol_per_slot_list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user