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
c97ff740
Commit
c97ff740
authored
Feb 07, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent memory leak
parent
2d89d206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+5
-8
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
c97ff740
...
...
@@ -2270,19 +2270,16 @@ void oai_subframe_ind(uint16_t sfn, uint16_t sf) {
}
}
void
handle_nr_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
)
{
void
handle_nr_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
)
{
//send VNF slot indication, which is aligned with TX thread, so that it can call the scheduler
nfapi_nr_slot_indication_scf_t
*
ind
;
ind
=
(
nfapi_nr_slot_indication_scf_t
*
)
malloc
(
sizeof
(
nfapi_nr_slot_indication_scf_t
));
uint8_t
slot_ahead
=
6
;
uint8_t
slot_ahead
=
6
;
// TODO ok?
uint32_t
sfn_slot_tx
=
sfnslot_add_slot
(
sfn
,
slot
,
slot_ahead
);
uint16_t
sfn_tx
=
NFAPI_SFNSLOT2SFN
(
sfn_slot_tx
);
uint8_t
slot_tx
=
NFAPI_SFNSLOT2SLOT
(
sfn_slot_tx
);
ind
->
sfn
=
sfn_tx
;
ind
->
slot
=
slot_tx
;
oai_nfapi_nr_slot_indication
(
ind
);
nfapi_nr_slot_indication_scf_t
ind
=
{
.
sfn
=
sfn_tx
,
.
slot
=
slot_tx
};
oai_nfapi_nr_slot_indication
(
&
ind
);
//copy data from appropriate p7 slot buffers into channel structures for PHY processing
nfapi_pnf_p7_slot_ind
(
p7_config_g
,
p7_config_g
->
phy_id
,
sfn
,
slot
);
...
...
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