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
Michael Black
OpenXG-RAN
Commits
c99a0557
Commit
c99a0557
authored
Nov 30, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-stop-rf-segfault' into integration_2022_wk48
parents
01710837
24fceb43
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
executables/nr-ru.c
executables/nr-ru.c
+12
-6
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
+1
-1
No files found.
executables/nr-ru.c
View file @
c99a0557
...
...
@@ -1295,12 +1295,6 @@ void *ru_thread( void *param ) {
printf
(
"Exiting ru_thread
\n
"
);
if
(
ru
->
stop_rf
!=
NULL
)
{
if
(
ru
->
stop_rf
(
ru
)
!=
0
)
LOG_E
(
HW
,
"Could not stop the RF device
\n
"
);
else
LOG_I
(
PHY
,
"RU %d rf device stopped
\n
"
,
ru
->
idx
);
}
ru_thread_status
=
0
;
return
&
ru_thread_status
;
}
...
...
@@ -1378,6 +1372,18 @@ void kill_NR_RU_proc(int inst) {
LOG_D
(
PHY
,
"Joining ru_stats_thread
\n
"
);
pthread_join
(
ru
->
ru_stats_thread
,
NULL
);
}
// everything should be stopped now, we can safely stop the RF device
if
(
ru
->
stop_rf
==
NULL
)
{
LOG_W
(
PHY
,
"No stop_rf() for RU %d defined, cannot stop RF!
\n
"
,
ru
->
idx
);
return
;
}
int
rc
=
ru
->
stop_rf
(
ru
);
if
(
rc
!=
0
)
{
LOG_W
(
PHY
,
"stop_rf() returned %d, RU %d RF device did not stop properly!
\n
"
,
rc
,
ru
->
idx
);
return
;
}
LOG_I
(
PHY
,
"RU %d RF device stopped
\n
"
,
ru
->
idx
);
}
int
check_capabilities
(
RU_t
*
ru
,
RRU_capabilities_t
*
cap
)
{
...
...
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
c99a0557
...
...
@@ -640,8 +640,8 @@ static void trx_usrp_write_reset(openair0_thread_t *wt) {
pthread_mutex_lock
(
&
wt
->
mutex_write
);
wt
->
count_write
=
1
;
wt
->
write_thread_exit
=
true
;
pthread_mutex_unlock
(
&
wt
->
mutex_write
);
pthread_cond_signal
(
&
wt
->
cond_write
);
pthread_mutex_unlock
(
&
wt
->
mutex_write
);
void
*
retval
=
NULL
;
pthread_join
(
wt
->
pthread_write
,
&
retval
);
LOG_I
(
HW
,
"stopped USRP write thread
\n
"
);
...
...
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