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
Michael Black
OpenXG-RAN
Commits
4cbea4cc
Commit
4cbea4cc
authored
Sep 28, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up MR code
parent
df79567b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+7
-21
No files found.
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
4cbea4cc
...
@@ -227,8 +227,8 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
...
@@ -227,8 +227,8 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
);
);
if
(
rx_ind
&&
UL_INFO
.
rx_ind
.
number_of_pdus
>
0
&&
crc_ind
&&
UL_INFO
.
crc_ind
.
number_crcs
>
0
)
{
if
(
rx_ind
&&
UL_INFO
.
rx_ind
.
number_of_pdus
>
0
&&
crc_ind
&&
UL_INFO
.
crc_ind
.
number_crcs
>
0
)
{
int
i
,
j
;
for
(
int
i
=
0
;
i
<
UL_INFO
.
rx_ind
.
number_of_pdus
;
i
++
)
{
for
(
i
=
0
;
i
<
UL_INFO
.
rx_ind
.
number_of_pdus
;
i
++
)
{
int
j
;
for
(
j
=
0
;
j
<
UL_INFO
.
crc_ind
.
number_crcs
;
j
++
)
{
for
(
j
=
0
;
j
<
UL_INFO
.
crc_ind
.
number_crcs
;
j
++
)
{
// find crc_indication j corresponding rx_indication i
// find crc_indication j corresponding rx_indication i
const
nfapi_nr_rx_data_pdu_t
*
rx
=
&
UL_INFO
.
rx_ind
.
pdu_list
[
i
];
const
nfapi_nr_rx_data_pdu_t
*
rx
=
&
UL_INFO
.
rx_ind
.
pdu_list
[
i
];
...
@@ -268,35 +268,21 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
...
@@ -268,35 +268,21 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
handle_nr_ul_harq
(
UL_INFO
.
CC_id
,
UL_INFO
.
module_id
,
UL_INFO
.
frame
,
UL_INFO
.
slot
,
crc
);
handle_nr_ul_harq
(
UL_INFO
.
CC_id
,
UL_INFO
.
module_id
,
UL_INFO
.
frame
,
UL_INFO
.
slot
,
crc
);
break
;
break
;
}
// for (j=0;j<UL_INFO.crc_ind.number_crcs;j++)
}
// for (j=0;j<UL_INFO.crc_ind.number_crcs;j++)
int
last
=
UL_INFO
.
crc_ind
.
number_crcs
-
1
;
int
last
=
UL_INFO
.
crc_ind
.
number_crcs
-
1
;
if
(
j
<
last
)
if
(
j
<
last
)
{
{
crc_ind
->
crc_list
[
j
].
handle
=
crc_ind
->
crc_list
[
last
].
handle
;
crc_ind
->
crc_list
[
j
]
=
rc_ind
->
crc_list
[
last
];
crc_ind
->
crc_list
[
j
].
harq_id
=
crc_ind
->
crc_list
[
last
].
harq_id
;
crc_ind
->
crc_list
[
j
].
num_cb
=
crc_ind
->
crc_list
[
last
].
num_cb
;
crc_ind
->
crc_list
[
j
].
rnti
=
crc_ind
->
crc_list
[
last
].
rnti
;
crc_ind
->
crc_list
[
j
].
tb_crc_status
=
crc_ind
->
crc_list
[
last
].
tb_crc_status
;
crc_ind
->
crc_list
[
j
].
timing_advance
=
crc_ind
->
crc_list
[
last
].
timing_advance
;
crc_ind
->
crc_list
[
j
].
ul_cqi
=
crc_ind
->
crc_list
[
last
].
ul_cqi
;
UL_INFO
.
crc_ind
.
number_crcs
--
;
UL_INFO
.
crc_ind
.
number_crcs
--
;
}
}
else
if
(
j
==
last
)
else
if
(
j
==
last
)
{
{
UL_INFO
.
crc_ind
.
number_crcs
--
;
UL_INFO
.
crc_ind
.
number_crcs
--
;
}
}
last
=
UL_INFO
.
rx_ind
.
number_of_pdus
-
1
;
last
=
UL_INFO
.
rx_ind
.
number_of_pdus
-
1
;
if
(
i
<
last
)
if
(
i
<
last
)
{
{
int
last
=
UL_INFO
.
rx_ind
.
number_of_pdus
-
1
;
rx_ind
->
pdu_list
[
i
]
=
rx_ind
->
pdu_list
[
last
];
rx_ind
->
pdu_list
[
i
].
handle
=
rx_ind
->
pdu_list
[
last
].
handle
;
rx_ind
->
pdu_list
[
i
].
harq_id
=
rx_ind
->
pdu_list
[
last
].
harq_id
;
rx_ind
->
pdu_list
[
i
].
pdu
=
rx_ind
->
pdu_list
[
last
].
pdu
;
rx_ind
->
pdu_list
[
i
].
pdu_length
=
rx_ind
->
pdu_list
[
last
].
pdu_length
;
rx_ind
->
pdu_list
[
i
].
rnti
=
rx_ind
->
pdu_list
[
last
].
rnti
;
rx_ind
->
pdu_list
[
i
].
timing_advance
=
rx_ind
->
pdu_list
[
last
].
timing_advance
;
rx_ind
->
pdu_list
[
i
].
ul_cqi
=
rx_ind
->
pdu_list
[
last
].
ul_cqi
;
UL_INFO
.
rx_ind
.
number_of_pdus
--
;
UL_INFO
.
rx_ind
.
number_of_pdus
--
;
i
--
;
i
--
;
}
}
...
...
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