Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shweta Shrivastava
openairinterface5G
Commits
99d220c3
Commit
99d220c3
authored
Sep 10, 2020
by
Hongzhi Wang
Browse files
set rnti at gnb and remove uci crc length at ue
parent
54ba635c
Changes
2
Hide whitespace changes
Inline
Side-by-side
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