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
alex037yang
OpenXG-RAN
Commits
2974c20c
Commit
2974c20c
authored
Feb 11, 2018
by
jftt_wangshanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tdd config case 1 to top
parent
4898d609
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
openair1/SCHED/phy_procedures_lte_common.c
openair1/SCHED/phy_procedures_lte_common.c
+20
-21
No files found.
openair1/SCHED/phy_procedures_lte_common.c
View file @
2974c20c
...
@@ -343,15 +343,15 @@ int ul_ACK_subframe2_dl_frame(LTE_DL_FRAME_PARMS *frame_parms,int frame, unsigne
...
@@ -343,15 +343,15 @@ int ul_ACK_subframe2_dl_frame(LTE_DL_FRAME_PARMS *frame_parms,int frame, unsigne
return
(((
subframe_tx
>
subframe
)
?
frame
-
1
:
frame
)
+
1024
)
%
1024
;
return
(((
subframe_tx
>
subframe
)
?
frame
-
1
:
frame
)
+
1024
)
%
1024
;
}
else
{
}
else
{
switch
(
frame_parms
->
tdd_config
)
{
switch
(
frame_parms
->
tdd_config
)
{
case
1
:
return
(((
subframe_tx
>
subframe
)
?
frame
-
1
:
frame
)
+
1024
)
%
1024
;
break
;
case
3
:
case
3
:
//TODO
//TODO
break
;
break
;
case
4
:
case
4
:
//TODO
//TODO
break
;
break
;
case
1
:
return
(((
subframe_tx
>
subframe
)
?
frame
-
1
:
frame
)
+
1024
)
%
1024
;
break
;
}
}
}
}
...
@@ -366,6 +366,23 @@ unsigned char ul_ACK_subframe2_M(LTE_DL_FRAME_PARMS *frame_parms,unsigned char s
...
@@ -366,6 +366,23 @@ unsigned char ul_ACK_subframe2_M(LTE_DL_FRAME_PARMS *frame_parms,unsigned char s
return
(
1
);
return
(
1
);
}
else
{
}
else
{
switch
(
frame_parms
->
tdd_config
)
{
switch
(
frame_parms
->
tdd_config
)
{
case
1
:
return
1
;
// don't ACK special subframe for now
if
(
subframe
==
2
)
{
// ACK subframes 5 and 6
return
(
2
);
}
else
if
(
subframe
==
3
)
{
// ACK subframe 9
return
(
1
);
// To be updated
}
else
if
(
subframe
==
7
)
{
// ACK subframes 0 and 1
return
(
2
);
// To be updated
}
else
if
(
subframe
==
8
)
{
// ACK subframe 4
return
(
1
);
// To be updated
}
else
{
LOG_E
(
PHY
,
"phy_procedures_lte_common.c/subframe2_dl_harq_pid: illegal subframe %d for tdd_config %d
\n
"
,
subframe
,
frame_parms
->
tdd_config
);
return
(
0
);
}
break
;
case
3
:
case
3
:
if
(
subframe
==
2
)
{
// ACK subframes 5 and 6
if
(
subframe
==
2
)
{
// ACK subframes 5 and 6
return
(
2
);
// should be 3
return
(
2
);
// should be 3
...
@@ -403,24 +420,6 @@ unsigned char ul_ACK_subframe2_M(LTE_DL_FRAME_PARMS *frame_parms,unsigned char s
...
@@ -403,24 +420,6 @@ unsigned char ul_ACK_subframe2_M(LTE_DL_FRAME_PARMS *frame_parms,unsigned char s
return
(
0
);
return
(
0
);
}
}
break
;
case
1
:
return
1
;
// don't ACK special subframe for now
if
(
subframe
==
2
)
{
// ACK subframes 5 and 6
return
(
2
);
}
else
if
(
subframe
==
3
)
{
// ACK subframe 9
return
(
1
);
// To be updated
}
else
if
(
subframe
==
7
)
{
// ACK subframes 0 and 1
return
(
2
);
// To be updated
}
else
if
(
subframe
==
8
)
{
// ACK subframe 4
return
(
1
);
// To be updated
}
else
{
LOG_E
(
PHY
,
"phy_procedures_lte_common.c/subframe2_dl_harq_pid: illegal subframe %d for tdd_config %d
\n
"
,
subframe
,
frame_parms
->
tdd_config
);
return
(
0
);
}
break
;
break
;
}
}
}
}
...
...
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