Assign NFAPI_NR_CONFIG_SLOT_CONFIG_TAG tag in TLVs used for transmitting the TDD Slot configuration through CONFIG.request.
This commit is contained in:
committed by
Robert Schmidt
parent
4ceac17cd5
commit
a6b40ace23
@@ -87,9 +87,14 @@ int set_tdd_config_nr(nfapi_nr_config_request_scf_t *cfg,
|
|||||||
|
|
||||||
cfg->tdd_table.max_tdd_periodicity_list = (nfapi_nr_max_tdd_periodicity_t *) malloc(nb_slots_to_set*sizeof(nfapi_nr_max_tdd_periodicity_t));
|
cfg->tdd_table.max_tdd_periodicity_list = (nfapi_nr_max_tdd_periodicity_t *) malloc(nb_slots_to_set*sizeof(nfapi_nr_max_tdd_periodicity_t));
|
||||||
|
|
||||||
for(int memory_alloc =0 ; memory_alloc<nb_slots_to_set; memory_alloc++)
|
for(int memory_alloc =0 ; memory_alloc<nb_slots_to_set; memory_alloc++) {
|
||||||
cfg->tdd_table.max_tdd_periodicity_list[memory_alloc].max_num_of_symbol_per_slot_list = (nfapi_nr_max_num_of_symbol_per_slot_t *) malloc(NR_NUMBER_OF_SYMBOLS_PER_SLOT*sizeof(
|
cfg->tdd_table.max_tdd_periodicity_list[memory_alloc].max_num_of_symbol_per_slot_list = (nfapi_nr_max_num_of_symbol_per_slot_t *) malloc(NR_NUMBER_OF_SYMBOLS_PER_SLOT*sizeof(
|
||||||
nfapi_nr_max_num_of_symbol_per_slot_t));
|
nfapi_nr_max_num_of_symbol_per_slot_t));
|
||||||
|
for(int number_of_symbol = 0; number_of_symbol < NR_NUMBER_OF_SYMBOLS_PER_SLOT; number_of_symbol++ ){
|
||||||
|
//for each symbol, assign the TLV tag for usage when packing
|
||||||
|
cfg->tdd_table.max_tdd_periodicity_list[memory_alloc].max_num_of_symbol_per_slot_list[number_of_symbol].slot_config.tl.tag = NFAPI_NR_CONFIG_SLOT_CONFIG_TAG;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while(slot_number != nb_slots_to_set) {
|
while(slot_number != nb_slots_to_set) {
|
||||||
if(nrofDownlinkSlots != 0) {
|
if(nrofDownlinkSlots != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user