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
ab63aa3c
Commit
ab63aa3c
authored
Aug 07, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_UE_pucch_format1_fixes' into integration_2023_w31
parents
056a7fdb
6a03f3fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+16
-3
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
ab63aa3c
...
...
@@ -1276,6 +1276,7 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
// Only HARQ transmitted in default PUCCH
pucch_pdu
->
mcs
=
get_pucch0_mcs
(
pucch
->
n_harq
,
0
,
pucch
->
ack_payload
,
0
);
pucch_pdu
->
payload
=
pucch
->
ack_payload
;
pucch_pdu
->
n_bit
=
1
;
}
else
if
(
pucch
->
pucch_resource
!=
NULL
)
{
...
...
@@ -1315,9 +1316,6 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
LOG_E
(
MAC
,
"PUCCH number of UCI bits exceeds payload size
\n
"
);
return
;
}
if
(
pucchres
->
format
.
present
!=
NR_PUCCH_Resource__format_PR_format0
)
pucch_pdu
->
payload
=
(
pucch
->
csi_part1_payload
<<
(
pucch
->
n_harq
+
pucch
->
n_sr
))
|
(
pucch
->
sr_payload
<<
pucch
->
n_harq
)
|
pucch
->
ack_payload
;
switch
(
pucchres
->
format
.
present
)
{
case
NR_PUCCH_Resource__format_PR_format0
:
...
...
@@ -1333,6 +1331,18 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
pucch_pdu
->
nr_of_symbols
=
pucchres
->
format
.
choice
.
format1
->
nrofSymbols
;
pucch_pdu
->
start_symbol_index
=
pucchres
->
format
.
choice
.
format1
->
startingSymbolIndex
;
pucch_pdu
->
time_domain_occ_idx
=
pucchres
->
format
.
choice
.
format1
->
timeDomainOCC
;
if
(
pucch
->
n_harq
>
0
)
{
// only HARQ bits are transmitted, resource selection depends on SR
// resource selection handled in function multiplex_pucch_resource
pucch_pdu
->
n_bit
=
pucch
->
n_harq
;
pucch_pdu
->
payload
=
pucch
->
ack_payload
;
}
else
{
// For a positive SR transmission using PUCCH format 1,
// the UE transmits the PUCCH as described in 38.211 by setting b(0) = 0
pucch_pdu
->
n_bit
=
pucch
->
n_sr
;
pucch_pdu
->
payload
=
0
;
}
break
;
case
NR_PUCCH_Resource__format_PR_format2
:
pucch_pdu
->
format_type
=
2
;
...
...
@@ -1348,6 +1358,7 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
2
,
pucchres
->
format
.
choice
.
format2
->
nrofSymbols
,
8
);
pucch_pdu
->
payload
=
(
pucch
->
csi_part1_payload
<<
(
pucch
->
n_harq
+
pucch
->
n_sr
))
|
(
pucch
->
sr_payload
<<
pucch
->
n_harq
)
|
pucch
->
ack_payload
;
break
;
case
NR_PUCCH_Resource__format_PR_format3
:
pucch_pdu
->
format_type
=
3
;
...
...
@@ -1380,6 +1391,7 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
2
-
pucch_pdu
->
pi_2bpsk
,
pucchres
->
format
.
choice
.
format3
->
nrofSymbols
-
f3_dmrs_symbols
,
12
);
pucch_pdu
->
payload
=
(
pucch
->
csi_part1_payload
<<
(
pucch
->
n_harq
+
pucch
->
n_sr
))
|
(
pucch
->
sr_payload
<<
pucch
->
n_harq
)
|
pucch
->
ack_payload
;
break
;
case
NR_PUCCH_Resource__format_PR_format4
:
pucch_pdu
->
format_type
=
4
;
...
...
@@ -1397,6 +1409,7 @@ void nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
pucch_pdu
->
pi_2bpsk
=
pucchfmt
->
pi2BPSK
!=
NULL
?
1
:
0
;
pucch_pdu
->
add_dmrs_flag
=
pucchfmt
->
additionalDMRS
!=
NULL
?
1
:
0
;
}
pucch_pdu
->
payload
=
(
pucch
->
csi_part1_payload
<<
(
pucch
->
n_harq
+
pucch
->
n_sr
))
|
(
pucch
->
sr_payload
<<
pucch
->
n_harq
)
|
pucch
->
ack_payload
;
break
;
default
:
AssertFatal
(
1
==
0
,
"Undefined PUCCH format
\n
"
);
...
...
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