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
spbro
OpenXG-RAN
Commits
db51a61c
Commit
db51a61c
authored
Feb 19, 2019
by
Louis Adrien Dufrene
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to remove cppcheck warnings
parent
0f52ce50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+5
-7
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+1
-1
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
db51a61c
...
...
@@ -1710,15 +1710,16 @@ schedule_ue_spec(module_id_t module_idP,
UE_id
);
continue_flag
=
0
;
// reset the flag to allow allocation for the remaining UEs
rnti
=
UE_RNTI
(
module_idP
,
UE_id
);
eNB_UE_stats
=
&
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
];
ue_sched_ctrl
=
&
UE_list
->
UE_sched_ctrl
[
UE_id
];
ue_template
=
&
UE_list
->
UE_template
[
CC_id
][
UE_id
];
if
(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rach_resource_type
>
0
)
continue_flag
=
1
;
if
(
ue_template
->
rach_resource_type
>
0
)
continue_flag
=
1
;
if
(
eNB_UE_stats
==
NULL
)
{
if
(
&
(
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
])
==
NULL
)
{
LOG_D
(
MAC
,
"[eNB] Cannot find eNB_UE_stats
\n
"
);
continue_flag
=
1
;
}
else
{
eNB_UE_stats
=
&
(
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
]);
}
if
(
continue_flag
!=
1
)
{
...
...
@@ -1795,8 +1796,7 @@ schedule_ue_spec(module_id_t module_idP,
subframeP
);
round
=
ue_sched_ctrl
->
round
[
CC_id
][
harq_pid
];
eNB_UE_stats
->
crnti
=
rnti
;
eNB_UE_stats
->
rrc_status
=
mac_eNB_get_rrc_status
(
module_idP
,
rnti
);
eNB_UE_stats
->
rrc_status
=
mac_eNB_get_rrc_status
(
module_idP
,
rnti
);
eNB_UE_stats
->
harq_pid
=
harq_pid
;
eNB_UE_stats
->
harq_round
=
round
;
...
...
@@ -2009,7 +2009,6 @@ schedule_ue_spec(module_id_t module_idP,
eNB_UE_stats
->
num_retransmission
+=
1
;
eNB_UE_stats
->
rbs_used_retx
=
nb_rb
;
eNB_UE_stats
->
total_rbs_used_retx
+=
nb_rb
;
eNB_UE_stats
->
dlsch_mcs1
=
eNB_UE_stats
->
dlsch_mcs1
;
eNB_UE_stats
->
dlsch_mcs2
=
eNB_UE_stats
->
dlsch_mcs1
;
}
else
{
LOG_D
(
MAC
,
...
...
@@ -2529,7 +2528,6 @@ schedule_ue_spec(module_id_t module_idP,
eNB_UE_stats
->
rbs_used
=
nb_rb
;
eNB_UE_stats
->
num_mac_sdu_tx
=
num_sdus
;
eNB_UE_stats
->
total_rbs_used
+=
nb_rb
;
eNB_UE_stats
->
dlsch_mcs1
=
eNB_UE_stats
->
dlsch_mcs1
;
eNB_UE_stats
->
dlsch_mcs2
=
mcs
;
eNB_UE_stats
->
TBS
=
TBS
;
eNB_UE_stats
->
overhead_bytes
=
TBS
-
sdu_length_total
;
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
db51a61c
...
...
@@ -3048,7 +3048,7 @@ dump_CCE_table(int *CCE_table,
break
;
}
printf
(
"rnti %x, Yk*L = %d
, nCCE %d (nCCE/L %d),nb_cand*L %d
\n
"
,
LOG_I
(
PHY
,
"rnti %x, Yk*L = %u
, nCCE %d (nCCE/L %d),nb_cand*L %d
\n
"
,
rnti
,
Yk
*
L
,
nCCE
,
...
...
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