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
d08ef049
Commit
d08ef049
authored
Jul 01, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly call stop functions in nr-softmodem main
parent
1df60139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
executables/nr-softmodem.c
executables/nr-softmodem.c
+8
-8
No files found.
executables/nr-softmodem.c
View file @
d08ef049
...
...
@@ -823,21 +823,21 @@ int main( int argc, char **argv ) {
}
#endif*/
printf
(
"stopping MODEM threads
\n
"
);
// cleanup
stop_gNB
(
NB_gNB_INST
);
if
(
RC
.
nb_nr_L1_inst
>
0
)
stop_gNB
(
RC
.
nb_nr_L1_inst
);
if
(
RC
.
nb_nr_L1_inst
>
0
)
{
stop_RU
(
NB_RU
);
}
if
(
RC
.
nb_RU
>
0
)
stop_RU
(
RC
.
nb_RU
);
/* release memory used by the RU/gNB threads (incomplete), after all
* threads have been stopped (they partially use the same memory) */
for
(
int
inst
=
0
;
inst
<
NB
_RU
;
inst
++
)
{
for
(
int
inst
=
0
;
inst
<
RC
.
nb
_RU
;
inst
++
)
{
nr_phy_free_RU
(
RC
.
ru
[
inst
]);
}
for
(
int
inst
=
0
;
inst
<
NB_gNB_INST
;
inst
++
)
{
for
(
int
inst
=
0
;
inst
<
RC
.
nb_nr_L1_inst
;
inst
++
)
{
phy_free_nr_gNB
(
RC
.
gNB
[
inst
]);
}
...
...
@@ -849,7 +849,7 @@ int main( int argc, char **argv ) {
// *** Handle per CC_id openair0
for
(
ru_id
=
0
;
ru_id
<
NB
_RU
;
ru_id
++
)
{
for
(
ru_id
=
0
;
ru_id
<
RC
.
nb
_RU
;
ru_id
++
)
{
if
(
RC
.
ru
[
ru_id
]
->
ifdevice
.
trx_end_func
)
RC
.
ru
[
ru_id
]
->
ifdevice
.
trx_end_func
(
&
RC
.
ru
[
ru_id
]
->
ifdevice
);
}
...
...
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