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
6a03f3fd
Commit
6a03f3fd
authored
Jul 28, 2023
by
francescomani
Committed by
Robert Schmidt
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct bits and payload for PUCCH format 1 at MAC UE
parent
1cbd6c71
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 @
6a03f3fd
...
...
@@ -1327,6 +1327,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
)
{
...
...
@@ -1366,9 +1367,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
:
...
...
@@ -1384,6 +1382,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
;
...
...
@@ -1399,6 +1409,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
;
...
...
@@ -1431,6 +1442,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
;
...
...
@@ -1448,6 +1460,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