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
zzha zzha
OpenXG-RAN
Commits
e28bd9ff
Commit
e28bd9ff
authored
May 18, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free USRP objects in trx_usrp_end()
parent
0ae3d302
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+16
-3
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
e28bd9ff
...
...
@@ -318,11 +318,24 @@ static void trx_usrp_end(openair0_device *device) {
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
if
(
s
==
NULL
)
return
;
AssertFatal
(
s
!=
NULL
,
"%s() called on uninitialized USRP
\n
"
,
__func__
);
iqrecorder_end
(
device
);
LOG_I
(
HW
,
"releasing USRP
\n
"
);
s
->
tx_stream
->~
tx_streamer
();
s
->
rx_stream
->~
rx_streamer
();
s
->
usrp
->~
multi_usrp
();
free
(
s
);
device
->
priv
=
NULL
;
device
->
trx_start_func
=
NULL
;
device
->
trx_get_stats_func
=
NULL
;
device
->
trx_reset_stats_func
=
NULL
;
device
->
trx_end_func
=
NULL
;
device
->
trx_stop_func
=
NULL
;
device
->
trx_set_freq_func
=
NULL
;
device
->
trx_set_gains_func
=
NULL
;
device
->
trx_write_init
=
NULL
;
}
/*! \brief Called to send samples to the USRP RF target
...
...
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