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
zzha zzha
OpenXG-RAN
Commits
23c1ea02
Commit
23c1ea02
authored
Sep 28, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for errors caught with sanitize in PUCCH2
parent
9127258a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
+4
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+1
-1
No files found.
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
View file @
23c1ea02
...
...
@@ -757,7 +757,10 @@ void nr_generate_pucch2(const PHY_VARS_NR_UE *ue,
for
(
int
l
=
0
;
l
<
pucch_pdu
->
nr_of_symbols
;
l
++
)
{
// c_init calculation according to TS38.211 subclause
x2
=
(((
1
<<
17
)
*
((
14
*
nr_slot_tx
)
+
(
l
+
startingSymbolIndex
)
+
1
)
*
((
2
*
pucch_pdu
->
dmrs_scrambling_id
)
+
1
))
+
(
2
*
pucch_pdu
->
dmrs_scrambling_id
))
%
(
1U
<<
31
);
uint64_t
temp_x2
=
1
<<
17
;
temp_x2
*=
(
14
*
nr_slot_tx
)
+
(
l
+
startingSymbolIndex
)
+
1
;
temp_x2
*=
(
2
*
pucch_pdu
->
dmrs_scrambling_id
)
+
1
;
x2
=
(
temp_x2
+
(
2
*
pucch_pdu
->
dmrs_scrambling_id
))
%
(
1U
<<
31
);
int
reset
=
1
;
for
(
int
ii
=
0
;
ii
<=
(
startingPRB
>>
2
);
ii
++
)
{
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
23c1ea02
...
...
@@ -1560,7 +1560,7 @@ int get_deltatf(uint16_t nb_of_prbs,
{
int
DELTA_TF
;
int
O_CRC
=
compute_pucch_crc_size
(
O_UCI
);
int
N_symb
=
nb_symbols_excluding_dmrs
[
N_symb_PUCCH
-
4
][
add_dmrs_flag
][
freq_hop_flag
];
int
N_symb
=
N_symb_PUCCH
<
4
?
N_symb_PUCCH
:
nb_symbols_excluding_dmrs
[
N_symb_PUCCH
-
4
][
add_dmrs_flag
][
freq_hop_flag
];
float
N_RE
=
nb_of_prbs
*
N_sc_ctrl_RB
*
N_symb
;
float
K1
=
6
;
if
(
O_UCI
+
O_CRC
<
12
)
...
...
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