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
d1e7dead
Commit
d1e7dead
authored
Feb 17, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the removal of unused BWPs
parent
95a02717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+19
-25
No files found.
openair2/GNB_APP/gnb_config.c
View file @
d1e7dead
...
...
@@ -458,6 +458,25 @@ for (int j = 0; j < NR_MAX_NUM_BWP; j++) {
/* This function checks dedicated serving cell configuration and performs fixes as needed */
void
fix_scd
(
NR_ServingCellConfig_t
*
scd
)
{
// Remove unused BWPs
int
b
=
0
;
while
(
b
<
scd
->
downlinkBWP_ToAddModList
->
list
.
count
)
{
if
(
scd
->
downlinkBWP_ToAddModList
->
list
.
array
[
b
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
==
0
)
{
asn_sequence_del
(
&
scd
->
downlinkBWP_ToAddModList
->
list
,
b
,
1
);
}
else
{
b
++
;
}
}
b
=
0
;
while
(
b
<
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
count
)
{
if
(
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
array
[
b
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
==
0
)
{
asn_sequence_del
(
&
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
,
b
,
1
);
}
else
{
b
++
;
}
}
// Check for DL PTRS parameters validity
for
(
int
bwp_i
=
0
;
bwp_i
<
scd
->
downlinkBWP_ToAddModList
->
list
.
count
;
bwp_i
++
)
{
...
...
@@ -1086,31 +1105,6 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
(
int
)
scd
->
downlinkBWP_ToAddModList
->
list
.
array
[
0
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
);
}
for
(
int
bb
=
0
;
bb
<
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
count
;
bb
++
)
{
printf
(
"scd->uplinkConfig->uplinkBWP_ToAddModList->list.array[bb]->bwp_Common->genericParameters = %li
\n
"
,
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
array
[
bb
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
);
}
// Remove unused BWPs
int
b
=
0
;
while
(
b
<
scd
->
downlinkBWP_ToAddModList
->
list
.
count
)
{
if
(
scd
->
downlinkBWP_ToAddModList
->
list
.
array
[
b
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
==
0
)
{
asn_sequence_del
(
&
scd
->
downlinkBWP_ToAddModList
->
list
,
b
,
1
);
}
else
{
b
++
;
}
}
b
=
0
;
while
(
b
<
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
count
)
{
if
(
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
.
array
[
b
]
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
==
0
)
{
asn_sequence_del
(
&
scd
->
uplinkConfig
->
uplinkBWP_ToAddModList
->
list
,
b
,
1
);
}
else
{
b
++
;
}
}
fix_scd
(
scd
);
printf
(
"NRRRC %d: Southbound Transport %s
\n
"
,
i
,
*
(
GNBParamList
.
paramarray
[
i
][
GNB_TRANSPORT_S_PREFERENCE_IDX
].
strptr
));
...
...
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