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
wangjie
OpenXG-RAN
Commits
b6dedd39
Commit
b6dedd39
authored
Apr 13, 2021
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retx3 reduce MCS by 5
parent
6746ef4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+3
-4
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
b6dedd39
...
@@ -430,11 +430,10 @@ int get_mcs_from_bler(module_id_t mod_id, int CC_id, frame_t frame, sub_frame_t
...
@@ -430,11 +430,10 @@ int get_mcs_from_bler(module_id_t mod_id, int CC_id, frame_t frame, sub_frame_t
const
NR_mac_stats_t
*
stats
=
&
nrmac
->
UE_info
.
mac_stats
[
UE_id
];
const
NR_mac_stats_t
*
stats
=
&
nrmac
->
UE_info
.
mac_stats
[
UE_id
];
const
int
dret3x
=
stats
->
dlsch_rounds
[
3
]
-
bler_stats
->
dlsch_rounds
[
3
];
const
int
dret3x
=
stats
->
dlsch_rounds
[
3
]
-
bler_stats
->
dlsch_rounds
[
3
];
if
(
dret3x
>
0
)
{
if
(
dret3x
>
0
)
{
/* if there is a third retransmission,
reset MCS and averaging window to
/* if there is a third retransmission,
decrease MCS for stabilization and
* stabilize transmission */
*
restart averaging window to
stabilize transmission */
bler_stats
->
last_frame_slot
=
now
;
bler_stats
->
last_frame_slot
=
now
;
if
(
bler_stats
->
mcs
>
9
)
bler_stats
->
mcs
=
max
(
9
,
bler_stats
->
mcs
-
5
);
bler_stats
->
mcs
>>=
1
;
memcpy
(
bler_stats
->
dlsch_rounds
,
stats
->
dlsch_rounds
,
sizeof
(
stats
->
dlsch_rounds
));
memcpy
(
bler_stats
->
dlsch_rounds
,
stats
->
dlsch_rounds
,
sizeof
(
stats
->
dlsch_rounds
));
LOG_D
(
MAC
,
"%4d.%2d: %d retx in 3rd round, setting MCS to %d and restarting window
\n
"
,
frame
,
slot
,
dret3x
,
bler_stats
->
mcs
);
LOG_D
(
MAC
,
"%4d.%2d: %d retx in 3rd round, setting MCS to %d and restarting window
\n
"
,
frame
,
slot
,
dret3x
,
bler_stats
->
mcs
);
return
bler_stats
->
mcs
;
return
bler_stats
->
mcs
;
...
...
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