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
littleBu
OpenXG-RAN
Commits
70a64341
Commit
70a64341
authored
Sep 17, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused input from get_beam_index function
parent
f9bff3d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+3
-3
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
70a64341
...
...
@@ -3185,7 +3185,7 @@ void fapi_beam_index_allocation(NR_ServingCellConfigCommon_t *scc, gNB_MAC_INST
}
}
static
inline
int
get_beam_index
(
const
NR_beam_info_t
*
beam_info
,
int
frame
,
int
slot
,
int
beam_index
,
int
slots_per_frame
)
static
inline
int
get_beam_index
(
const
NR_beam_info_t
*
beam_info
,
int
frame
,
int
slot
,
int
slots_per_frame
)
{
return
((
frame
*
slots_per_frame
+
slot
)
/
beam_info
->
beam_duration
)
%
beam_info
->
beam_allocation_size
;
}
...
...
@@ -3196,7 +3196,7 @@ NR_beam_alloc_t beam_allocation_procedure(NR_beam_info_t *beam_info, int frame,
if
(
!
beam_info
->
beam_allocation
)
return
(
NR_beam_alloc_t
)
{.
new_beam
=
false
,
.
idx
=
0
};
const
int
index
=
get_beam_index
(
beam_info
,
frame
,
slot
,
beam_index
,
slots_per_frame
);
const
int
index
=
get_beam_index
(
beam_info
,
frame
,
slot
,
slots_per_frame
);
for
(
int
i
=
0
;
i
<
beam_info
->
beams_per_period
;
i
++
)
{
NR_beam_alloc_t
beam_struct
=
{.
new_beam
=
false
,
.
idx
=
i
};
int
*
beam
=
&
beam_info
->
beam_allocation
[
i
][
index
];
...
...
@@ -3215,7 +3215,7 @@ void reset_beam_status(NR_beam_info_t *beam_info, int frame, int slot, int beam_
{
if
(
!
new_beam
)
// need to reset only if the beam was allocated specifically for this instance
return
;
const
int
index
=
get_beam_index
(
beam_info
,
frame
,
slot
,
beam_index
,
slots_per_frame
);
const
int
index
=
get_beam_index
(
beam_info
,
frame
,
slot
,
slots_per_frame
);
for
(
int
i
=
0
;
i
<
beam_info
->
beams_per_period
;
i
++
)
{
if
(
beam_info
->
beam_allocation
[
i
][
index
]
==
beam_index
)
beam_info
->
beam_allocation
[
i
][
index
]
=
-
1
;
...
...
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