Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
a0eaf8ad
Commit
a0eaf8ad
authored
May 29, 2024
by
hsum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dynamically allocate memory for TDD periodicity list using get_nb_max_tdd_periodicity
parent
1abcfa5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
+7
-4
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi_p5.c
View file @
a0eaf8ad
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include "nfapi_nr_interface_scf.h"
#include "nfapi_nr_interface_scf.h"
#include "nfapi/oai_integration/vendor_ext.h"
#include "nfapi/oai_integration/vendor_ext.h"
#include <debug.h>
#include <debug.h>
#include "common/utils/nr/nr_common.h"
// Pack routines
// Pack routines
...
@@ -1935,8 +1936,9 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
...
@@ -1935,8 +1936,9 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
end
,
end
,
&
pack_uint8_tlv_value
);
&
pack_uint8_tlv_value
);
numTLVs
++
;
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
++
)
{
for
(
int
k
=
0
;
k
<
14
;
k
++
)
{
pack_nr_tlv
(
NFAPI_NR_CONFIG_SLOT_CONFIG_TAG
,
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
),
&
(
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
...
@@ -1946,6 +1948,7 @@ static uint8_t pack_nr_config_request(void *msg, uint8_t **ppWritePackedMsg, uin
numTLVs
++
;
numTLVs
++
;
}
}
}
}
// END TDD Table
}
}
// START Measurement Config
// START Measurement Config
// SCF222.10.02 Table 3-27 : Contains only one TLV and is currently unused
// SCF222.10.02 Table 3-27 : Contains only one TLV and is currently unused
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment