Commit a0eaf8ad authored by hsum's avatar hsum

Dynamically allocate memory for TDD periodicity list using get_nb_max_tdd_periodicity

parent 1abcfa5c
......@@ -38,6 +38,7 @@
#include "nfapi_nr_interface_scf.h"
#include "nfapi/oai_integration/vendor_ext.h"
#include <debug.h>
#include "common/utils/nr/nr_common.h"
// Pack routines
......@@ -1935,8 +1936,9 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
end,
&pack_uint8_tlv_value);
numTLVs++;
// END TDD Table
for (int i = 0; i < 2*(1<<mu)*10; i++) {
int nb_max_tdd_periodicity = get_nb_max_tdd_periodicity(mu, pNfapiMsg->tdd_table.tdd_period.value);
for (int i = 0; i < nb_max_tdd_periodicity; i++) {
for (int k = 0; k < 14; k++) {
pack_nr_tlv(NFAPI_NR_CONFIG_SLOT_CONFIG_TAG,
&(pNfapiMsg->tdd_table.max_tdd_periodicity_list[i].max_num_of_symbol_per_slot_list[k].slot_config),
......@@ -1946,6 +1948,7 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
numTLVs++;
}
}
// END TDD Table
}
// START Measurement Config
// SCF222.10.02 Table 3-27 : Contains only one TLV and is currently unused
......
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