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
3d804db4
Commit
3d804db4
authored
Aug 04, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code refactoring
parent
64568b2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+17
-16
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
3d804db4
...
...
@@ -921,12 +921,12 @@ void update_ul_ue_R_Qm(int mcs, const NR_pusch_semi_static_t *ps, uint16_t *R, u
}
}
void
nr_ue_max_mcs_min_rb
(
int
mu
,
int
ph
,
NR_pusch_semi_static_t
*
ps
,
long
*
deltaMCS
,
uint16_t
minRb
,
uint32_t
tbs
,
uint16_t
*
Rb
,
uint8_t
*
mcs
)
void
nr_ue_max_mcs_min_rb
(
int
mu
,
int
ph
_limit
,
NR_pusch_semi_static_t
*
ps
,
long
*
deltaMCS
,
uint16_t
minRb
,
uint32_t
tbs
,
uint16_t
*
Rb
,
uint8_t
*
mcs
)
{
AssertFatal
(
*
Rb
>=
minRb
,
"illegal Rb %d < minRb %d
\n
"
,
*
Rb
,
minRb
);
AssertFatal
(
*
mcs
>=
0
&&
*
mcs
<=
28
,
"illegal MCS %d
\n
"
,
*
mcs
);
int
tbs_bits
=
tbs
<<
3
;
const
int
tbs_bits
=
tbs
<<
3
;
uint16_t
R
;
uint8_t
Qm
;
update_ul_ue_R_Qm
(
*
mcs
,
ps
,
&
R
,
&
Qm
);
...
...
@@ -939,7 +939,7 @@ void nr_ue_max_mcs_min_rb(int mu, int ph, NR_pusch_semi_static_t *ps, long* delt
ps
->
N_PRB_DMRS
*
ps
->
num_dmrs_symb
,
deltaMCS
);
while
(
ph
<
tx_power
&&
*
Rb
>=
minRb
)
{
while
(
ph
_limit
<
tx_power
&&
*
Rb
>=
minRb
)
{
(
*
Rb
)
--
;
tx_power
=
compute_bw_factor
(
mu
,
*
Rb
)
+
compute_delta_tf
(
tbs_bits
,
...
...
@@ -950,7 +950,7 @@ void nr_ue_max_mcs_min_rb(int mu, int ph, NR_pusch_semi_static_t *ps, long* delt
deltaMCS
);
}
while
(
ph
<
tx_power
&&
*
mcs
>
6
)
{
while
(
ph
_limit
<
tx_power
&&
*
mcs
>
6
)
{
(
*
mcs
)
--
;
update_ul_ue_R_Qm
(
*
mcs
,
ps
,
&
R
,
&
Qm
);
tx_power
=
compute_bw_factor
(
mu
,
*
Rb
)
+
...
...
@@ -962,8 +962,9 @@ void nr_ue_max_mcs_min_rb(int mu, int ph, NR_pusch_semi_static_t *ps, long* delt
deltaMCS
);
}
if
(
ph
<
tx_power
)
LOG_W
(
NR_MAC
,
"PH %d < tx_power %d (RBs %d, MCS %d)
\n
"
,
ph
,
tx_power
,
*
Rb
,
*
mcs
);
if
(
ph_limit
<
tx_power
)
LOG_W
(
NR_MAC
,
"Normalized power %d based on current resources (RBs %d, MCS %d) exceed reported PHR %d (normalized value)
\n
"
,
tx_power
,
*
Rb
,
*
mcs
,
ph_limit
);
}
static
bool
allocate_ul_retransmission
(
gNB_MAC_INST
*
nrmac
,
...
...
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