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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
965ed3e8
Commit
965ed3e8
authored
Oct 05, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config module: check that memory is enough, allow more restarts
parent
3f3a9869
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
common/config/config_common.c
common/config/config_common.c
+1
-0
common/config/config_load_configmodule.h
common/config/config_load_configmodule.h
+1
-1
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+4
-0
No files found.
common/config/config_common.c
View file @
965ed3e8
...
...
@@ -112,6 +112,7 @@ void *config_allocate_new(configmodule_interface_t *cfg, int sz, bool autoFree)
// add the memory piece in the managed memory pieces list
pthread_mutex_lock
(
&
cfg
->
memBlocks_mutex
);
int
newBlockIdx
=
cfg
->
numptrs
++
;
AssertFatal
(
newBlockIdx
<=
sizeof
(
cfg
->
oneBlock
)
/
sizeof
(
cfg
->
oneBlock
[
0
]),
"reached maximum number of dynamically allocatable blocks
\n
"
);
oneBlock_t
*
tmp
=&
cfg
->
oneBlock
[
newBlockIdx
];
tmp
->
ptrs
=
(
char
*
)
ptr
;
tmp
->
ptrsAllocated
=
true
;
...
...
common/config/config_load_configmodule.h
View file @
965ed3e8
...
...
@@ -41,7 +41,7 @@
#include "common/config/config_paramdesc.h"
#include "common/utils/T/T.h"
#define CONFIG_MAX_OOPT_PARAMS 10 // maximum number of parameters in the -O option (-O <cfgmode>:P1:P2...
#define CONFIG_MAX_ALLOCATEDPTRS
204
8 // maximum number of parameters that can be dynamicaly allocated in the config module
#define CONFIG_MAX_ALLOCATEDPTRS
3276
8 // maximum number of parameters that can be dynamicaly allocated in the config module
/* default values for configuration module parameters */
#define CONFIG_LIBCONFIGFILE "libconfig" // use libconfig file
...
...
openair2/RRC/NR/nr_rrc_config.c
View file @
965ed3e8
...
...
@@ -829,6 +829,10 @@ void nr_rrc_config_dl_tda(struct NR_PDSCH_TimeDomainResourceAllocationList *pdsc
void
nr_rrc_config_ul_tda
(
NR_ServingCellConfigCommon_t
*
scc
,
int
min_fb_delay
){
//TODO change to accomodate for SRS
if
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
pusch_ConfigCommon
->
choice
.
setup
->
pusch_TimeDomainAllocationList
->
list
.
count
>
0
)
{
LOG_W
(
RRC
,
"%s(): already have pusch_TimeDomainAllocationList members, not adding more
\n
"
,
__func__
);
return
;
}
frame_type_t
frame_type
=
get_frame_type
(
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
],
*
scc
->
ssbSubcarrierSpacing
);
const
int
k2
=
min_fb_delay
;
...
...
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