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
canghaiwuhen
OpenXG-RAN
Commits
1008080e
Commit
1008080e
authored
Feb 22, 2018
by
tomita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix for harq_pid calculation in MAC layer.
parent
19509f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+6
-9
No files found.
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
1008080e
...
@@ -3771,6 +3771,8 @@ uint8_t frame_subframe2_dl_harq_pid(TDD_Config_t *tdd_Config, int abs_frameP, su
...
@@ -3771,6 +3771,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
switch
(
tdd_Config
->
subframeAssignment
){
//TODO fill in other tdd config
case
1
:
case
1
:
harq_pid
=
(((
frame_cnt
*
1024
+
abs_frameP
)
*
4
)
-
1
+
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
))
%
7
;
//4 dl subframe in a frame
harq_pid
=
(((
frame_cnt
*
1024
+
abs_frameP
)
*
4
)
-
1
+
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
))
%
7
;
//4 dl subframe in a frame
if
(
harq_pid
<
0
)
harq_pid
+=
7
;
LOG_D
(
MAC
,
"[frame_subframe2_dl_harq_pid] (%d,%d) calculate harq_pid ((( %d * 1024 + %d) *4) - 1 + %d)%7 = %d
\n
"
,
LOG_D
(
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
,
(
abs_frameP
+
1024
)
%
1024
,
subframeP
,
frame_cnt
,
abs_frameP
,
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
),
harq_pid
);
get_dl_subframe_count
(
tdd_Config
->
subframeAssignment
,
subframeP
),
harq_pid
);
...
@@ -3839,15 +3841,10 @@ extract_harq(module_id_t mod_idP, int CC_idP, int UE_id,
...
@@ -3839,15 +3841,10 @@ extract_harq(module_id_t mod_idP, int CC_idP, int UE_id,
int
M
=
ul_ACK_subframe2_M
(
fp
,
subframeP
);
int
M
=
ul_ACK_subframe2_M
(
fp
,
subframeP
);
for
(
m
=
0
;
m
<
M
;
m
++
){
for
(
m
=
0
;
m
<
M
;
m
++
){
subframe_tx
=
ul_ACK_subframe2_dl_subframe
(
fp
,
subframeP
,
m
);
subframe_tx
=
ul_ACK_subframe2_dl_subframe
(
fp
,
subframeP
,
m
);
switch
(
cc
->
tdd_Config
->
subframeAssignment
){
if
(
frameP
==
1023
&&
subframeP
>
5
)
case
1
:
frame_tx
=-
1
;
if
(
frameP
==
0
&&
subframeP
<
4
)
else
frame_tx
=
0
;
frame_tx
=
subframeP
<
4
?
frameP
-
1
:
frameP
;
else
frame_tx
=
subframeP
<
4
?
frameP
-
1
:
frameP
;
// not formal
break
;
// TODO : Other TDD Config
}
harq_pid
=
frame_subframe2_dl_harq_pid
(
cc
->
tdd_Config
,
frame_tx
,
subframe_tx
);
harq_pid
=
frame_subframe2_dl_harq_pid
(
cc
->
tdd_Config
,
frame_tx
,
subframe_tx
);
if
(
num_ack_nak
==
1
){
if
(
num_ack_nak
==
1
){
if
(
harq_indication_tdd
->
harq_data
[
0
].
bundling
.
value_0
==
1
){
//ack
if
(
harq_indication_tdd
->
harq_data
[
0
].
bundling
.
value_0
==
1
){
//ack
...
...
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