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
21d7446c
Commit
21d7446c
authored
Jun 12, 2019
by
masa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix decoding pucch format 1b
parent
f9dd5370
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
openair1/PHY/LTE_TRANSPORT/pucch.c
openair1/PHY/LTE_TRANSPORT/pucch.c
+6
-2
No files found.
openair1/PHY/LTE_TRANSPORT/pucch.c
View file @
21d7446c
...
@@ -1374,8 +1374,12 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB,
...
@@ -1374,8 +1374,12 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB,
*
payload
=
(
stat_re
<
0
)
?
1
:
2
;
// 1 == ACK, 2 == NAK
*
payload
=
(
stat_re
<
0
)
?
1
:
2
;
// 1 == ACK, 2 == NAK
if
(
fmt
==
pucch_format1b
)
if
(
fmt
==
pucch_format1b
){
*
(
1
+
payload
)
=
(
stat_im
<
0
)
?
1
:
2
;
*
payload
=
(
stat_im
>
stat_re
)
?
1
:
2
;
*
(
1
+
payload
)
=
(
stat_im
>
(
-
1
.
0
*
stat_re
))
?
2
:
1
;
LOG_D
(
PHY
,
"PUCCH 1b ACK/NAK subframe %d : stat %d, stat %d %d, payload %d %d
\n
"
,
subframe
,
dB_fixed
(
stat_max
),
stat_re
,
stat_im
,
*
payload
,
*
(
1
+
payload
));
}
}
else
{
// insufficient energy on PUCCH so NAK
}
else
{
// insufficient energy on PUCCH so NAK
#if defined(USRP_REC_PLAY)
#if defined(USRP_REC_PLAY)
LOG_D
(
PHY
,
"PUCCH 1a/b: NAK subframe %d : sigma2_dB %d, stat_max %d, pucch1_thres %d
\n
"
,
subframe
,
sigma2_dB
,
dB_fixed
(
stat_max
),
pucch1_thres
);
LOG_D
(
PHY
,
"PUCCH 1a/b: NAK subframe %d : sigma2_dB %d, stat_max %d, pucch1_thres %d
\n
"
,
subframe
,
sigma2_dB
,
dB_fixed
(
stat_max
),
pucch1_thres
);
...
...
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