Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
a53e22c2
Commit
a53e22c2
authored
Feb 19, 2018
by
Yoshihiro Tomita
Browse files
Fixed harq_pid calculation.
parent
c80246a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
a53e22c2
...
...
@@ -3770,8 +3770,8 @@ uint8_t frame_subframe2_dl_harq_pid(TDD_Config_t *tdd_Config, int abs_frameP, su
switch
(
tdd_Config
->
subframeAssignment
){
//TODO fill in other tdd config
case
1
:
harq_pid
=
((
frame_cnt
*
1024
+
abs_frameP
)
*
4
+
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
))
%
7
;
//4 dl subframe in a frame
LOG_I
(
MAC
,
"[frame_subframe2_dl_harq_pid] (%d,%d) calculate harq_pid (( %d * 1024 + %d) *4 + %d)%7 = %d
\n
"
,
harq_pid
=
((
(
frame_cnt
*
1024
+
abs_frameP
)
*
4
)
-
1
+
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
))
%
7
;
//4 dl subframe in a frame
LOG_I
(
MAC
,
"[frame_subframe2_dl_harq_pid] (%d,%d) calculate harq_pid ((
(
%d * 1024 + %d) *4
) - 1
+ %d)%7 = %d
\n
"
,
(
abs_frameP
+
1024
)
%
1024
,
subframeP
,
frame_cnt
,
abs_frameP
,
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
),
harq_pid
);
return
harq_pid
;
...
...
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