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
ZhouShuya
OpenXG-RAN
Commits
57a9156f
Commit
57a9156f
authored
Mar 01, 2018
by
Wang.shanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix index used while checking harq result with SR collision
parent
87fb55c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+9
-6
No files found.
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
57a9156f
...
@@ -904,12 +904,13 @@ void uci_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
...
@@ -904,12 +904,13 @@ void uci_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
frame
,
frame
,
subframe
,
subframe
,
PUCCH1_THRES
);
PUCCH1_THRES
);
LOG_D
(
PHY
,
"[eNB %d][SR %x] Frame %d subframe %d Checking SR is %d (SR n1pucch is %d)
\n
"
,
LOG_D
(
PHY
,
"[eNB %d][SR %x] Frame %d subframe %d Checking SR is %d (
uci.type %d
SR n1pucch is %d)
\n
"
,
eNB
->
Mod_id
,
eNB
->
Mod_id
,
uci
->
rnti
,
uci
->
rnti
,
frame
,
frame
,
subframe
,
subframe
,
SR_payload
,
SR_payload
,
uci
->
type
,
uci
->
n_pucch_1_0_sr
[
0
]);
uci
->
n_pucch_1_0_sr
[
0
]);
if
(
uci
->
type
==
SR
)
{
if
(
uci
->
type
==
SR
)
{
if
(
SR_payload
==
1
)
{
if
(
SR_payload
==
1
)
{
...
@@ -1021,21 +1022,23 @@ void uci_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
...
@@ -1021,21 +1022,23 @@ void uci_procedures(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
}
}
LOG_I
(
PHY
,
"RNTI %x type %d SR_payload %d Frame %d Subframe %d pucch_b0b1[0][0] %d pucch_b0b1[0][1] %d pucch_b0b1[1][0] %d pucch_b0b1[1][1] %d
\n
"
,
uci
->
rnti
,
uci
->
type
,
SR_payload
,
frame
,
subframe
,
pucch_b0b1
[
0
][
0
],
pucch_b0b1
[
0
][
1
],
pucch_b0b1
[
1
][
0
],
pucch_b0b1
[
1
][
1
]);
if
(
SR_payload
==
1
)
{
// this implements Table 7.3.1 from 36.213
if
(
SR_payload
==
1
)
{
// this implements Table 7.3.1 from 36.213
if
(
pucch_b0b1
[
0
][
0
]
==
4
)
{
// there isn't a likely transmission
if
(
pucch_b0b1
[
0
][
0
]
==
4
)
{
// there isn't a likely transmission
harq_ack
[
0
]
=
4
;
// DTX
harq_ack
[
0
]
=
4
;
// DTX
}
}
else
if
(
pucch_b0b1
[
1
][
0
]
==
1
&&
pucch_b0b1
[
1
][
1
]
==
1
)
{
// 1/4/7 ACKs
else
if
(
pucch_b0b1
[
0
][
0
]
==
1
&&
pucch_b0b1
[
0
][
1
]
==
1
)
{
// 1/4/7 ACKs
harq_ack
[
0
]
=
1
;
harq_ack
[
0
]
=
1
;
}
}
else
if
(
pucch_b0b1
[
1
][
0
]
==
1
&&
pucch_b0b1
[
1
][
1
]
!=
1
)
{
// 2/5/8 ACKs
else
if
(
pucch_b0b1
[
0
][
0
]
==
1
&&
pucch_b0b1
[
0
][
1
]
!=
1
)
{
// 2/5/8 ACKs
harq_ack
[
0
]
=
2
;
harq_ack
[
0
]
=
2
;
}
}
else
if
(
pucch_b0b1
[
1
][
0
]
!=
1
&&
pucch_b0b1
[
1
][
1
]
==
1
)
{
// 3/6/9 ACKs
else
if
(
pucch_b0b1
[
0
][
0
]
!=
1
&&
pucch_b0b1
[
0
][
1
]
==
1
)
{
// 3/6/9 ACKs
harq_ack
[
0
]
=
3
;
harq_ack
[
0
]
=
3
;
}
}
else
if
(
pucch_b0b1
[
1
][
0
]
!=
1
&&
pucch_b0b1
[
1
][
1
]
!=
1
)
{
// 0 ACKs, or at least one DL assignment missed
else
if
(
pucch_b0b1
[
0
][
0
]
!=
1
&&
pucch_b0b1
[
0
][
1
]
!=
1
)
{
// 0 ACKs, or at least one DL assignment missed
harq_ack
[
0
]
=
0
;
harq_ack
[
0
]
=
0
;
}
}
uci
->
stat
=
metric
[
0
];
uci
->
stat
=
metric
[
0
];
...
...
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