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
lizhongxiao
OpenXG-RAN
Commits
a53e22c2
Commit
a53e22c2
authored
Feb 19, 2018
by
tomita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed harq_pid calculation.
parent
c80246a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+2
-2
No files found.
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