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
99d220c3
Commit
99d220c3
authored
Sep 10, 2020
by
Hongzhi Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set rnti at gnb and remove uci crc length at ue
parent
54ba635c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
+10
-10
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+1
-0
No files found.
openair1/SCHED_NR_UE/pucch_uci_ue_nr.c
View file @
99d220c3
...
...
@@ -506,15 +506,15 @@ bool pucch_procedures_ue_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, UE_nr_rxtx_proc_
/* TS 38.212 6.3.1.2 Code block segmentation and CRC attachment */
/* crc attachment can be done depending of payload size */
if
(
N_UCI
<
11
)
{
O_CRC
=
0
;
/* no additional crc bits */
}
else
if
((
N_UCI
>=
12
)
&&
(
N_UCI
<=
19
))
{
O_CRC
=
6
;
/* number of additional crc bits */
}
else
if
(
N_UCI
>=
20
)
{
O_CRC
=
11
;
/* number of additional crc bits */
}
//
if (N_UCI < 11) {
//
O_CRC = 0; /* no additional crc bits */
//
}
//
else if ((N_UCI >= 12) && (N_UCI <= 19)) {
//
O_CRC = 6; /* number of additional crc bits */
//
}
//
else if (N_UCI >= 20) {
//
O_CRC = 11; /* number of additional crc bits */
//
}
N_UCI
=
N_UCI
+
O_CRC
;
...
...
@@ -1306,7 +1306,7 @@ int get_csi_nr(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint32_t *csi_payload)
float
rsrp_db
[
7
];
int
nElem
=
98
;
int
rsrp_offset
=
17
;
int
csi_status
=
1
2
;
int
csi_status
=
1
1
;
rsrp_db
[
0
]
=
get_nr_RSRP
(
0
,
0
,
0
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
99d220c3
...
...
@@ -649,6 +649,7 @@ void nr_configure_pucch(nfapi_nr_pucch_pdu_t* pucch_pdu,
if
(
pucchres
->
pucch_ResourceId
==
*
resource_id
)
{
res_found
=
1
;
pucch_pdu
->
prb_start
=
pucchres
->
startingPRB
;
pucch_pdu
->
rnti
=
0x1234
;
// temporarily set same value as oai ue
// FIXME why there is only one frequency hopping flag
// what about inter slot frequency hopping?
pucch_pdu
->
freq_hop_flag
=
pucchres
->
intraSlotFrequencyHopping
!=
NULL
?
1
:
0
;
...
...
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