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
2faca0fd
Commit
2faca0fd
authored
Mar 03, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix too large shift in nr_pucchsim
parent
7f4e8f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+1
-1
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
2faca0fd
...
...
@@ -1774,7 +1774,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
}
bit_left
=
pucch_pdu
->
bit_len_csi_part1
-
((
csi_part1_bytes
-
1
)
<<
3
);
uci_pdu
->
csi_part1
.
csi_part1_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
decodedPayload
[
0
]
>>=
pucch_pdu
->
bit_len_csi_part1
;
decodedPayload
[
0
]
=
pucch_pdu
->
bit_len_csi_part1
<
64
?
decodedPayload
[
0
]
>>
pucch_pdu
->
bit_len_csi_part1
:
0
;
}
if
(
pucch_pdu
->
bit_len_csi_part2
>
0
)
{
...
...
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
2faca0fd
...
...
@@ -401,7 +401,7 @@ int main(int argc, char **argv)
srand
(
time
(
NULL
));
// Initialization, should only be called once.
actual_payload
=
rand
();
// Returns a pseudo-random integer between 0 and RAND_MAX.
}
actual_payload
&=
((
1
<<
nr_bit
)
-
1
)
;
actual_payload
&=
nr_bit
<
64
?
(
1UL
<<
nr_bit
)
-
1
:
0xffffffffffffffff
;
printf
(
"Transmitted payload is %ld, do_DTX = %d
\n
"
,
actual_payload
,
do_DTX
);
...
...
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