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
zzha zzha
OpenXG-RAN
Commits
d564d8f9
Commit
d564d8f9
authored
Nov 08, 2021
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to emulate_l1 instead of nsa in gNB indication.
parent
e5ac73a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+3
-2
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+7
-7
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
d564d8f9
...
@@ -1099,8 +1099,9 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
...
@@ -1099,8 +1099,9 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
const
int8_t
pid
=
sched_ctrl
->
feedback_dl_harq
.
head
;
const
int8_t
pid
=
sched_ctrl
->
feedback_dl_harq
.
head
;
remove_front_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
);
remove_front_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
);
/* According to nfapi_nr_interface_scf.h, harq_value = 0 is a pass
/* According to nfapi_nr_interface_scf.h, harq_value = 0 is a pass
(The check below was for harq_value == 1 in the develop branch) */
(The check below was for harq_value == 1 in the develop branch)
if
(
get_softmodem_params
()
->
nsa
)
TODO: After update in develop branch, the following condition will be updated.*/
if
(
get_softmodem_params
()
->
emulate_l1
)
handle_dl_harq
(
mod_id
,
UE_id
,
pid
,
harq_value
==
0
&&
harq_confidence
==
0
);
handle_dl_harq
(
mod_id
,
UE_id
,
pid
,
harq_value
==
0
&&
harq_confidence
==
0
);
else
else
handle_dl_harq
(
mod_id
,
UE_id
,
pid
,
harq_value
==
1
&&
harq_confidence
==
0
);
handle_dl_harq
(
mod_id
,
UE_id
,
pid
,
harq_value
==
1
&&
harq_confidence
==
0
);
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
d564d8f9
...
@@ -73,7 +73,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
...
@@ -73,7 +73,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
}
}
NR_UL_IND_t
UL_INFO
;
NR_UL_IND_t
UL_INFO
;
nfapi_nr_rach_indication_t
*
rach_ind
=
NULL
;
nfapi_nr_rach_indication_t
*
rach_ind
=
NULL
;
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
if
(
gnb_rach_ind_queue
.
num_items
==
0
)
if
(
gnb_rach_ind_queue
.
num_items
==
0
)
return
;
return
;
...
@@ -118,7 +118,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
...
@@ -118,7 +118,7 @@ void handle_nr_rach(NR_UL_IND_t *UL_info)
UL_INFO
.
rach_ind
.
pdu_list
[
i
].
preamble_list
[
0
].
timing_advance
);
UL_INFO
.
rach_ind
.
pdu_list
[
i
].
preamble_list
[
0
].
timing_advance
);
}
}
}
}
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
if
(
rach_ind
&&
rach_ind
->
number_of_pdus
>
0
)
if
(
rach_ind
&&
rach_ind
->
number_of_pdus
>
0
)
{
{
...
@@ -149,7 +149,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
...
@@ -149,7 +149,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
NR_UL_IND_t
UL_INFO
;
NR_UL_IND_t
UL_INFO
;
nfapi_nr_uci_indication_t
*
uci_ind
=
NULL
;
nfapi_nr_uci_indication_t
*
uci_ind
=
NULL
;
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
if
(
gnb_uci_ind_queue
.
num_items
==
0
)
if
(
gnb_uci_ind_queue
.
num_items
==
0
)
return
;
return
;
...
@@ -191,7 +191,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
...
@@ -191,7 +191,7 @@ void handle_nr_uci(NR_UL_IND_t *UL_info)
}
}
}
}
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
for
(
int
i
=
0
;
i
<
num_ucis
;
i
++
)
{
for
(
int
i
=
0
;
i
<
num_ucis
;
i
++
)
{
switch
(
uci_list
[
i
].
pdu_type
)
{
switch
(
uci_list
[
i
].
pdu_type
)
{
...
@@ -266,7 +266,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
...
@@ -266,7 +266,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
NR_UL_IND_t
UL_INFO
;
NR_UL_IND_t
UL_INFO
;
nfapi_nr_rx_data_indication_t
*
rx_ind
=
NULL
;
nfapi_nr_rx_data_indication_t
*
rx_ind
=
NULL
;
nfapi_nr_crc_indication_t
*
crc_ind
=
NULL
;
nfapi_nr_crc_indication_t
*
crc_ind
=
NULL
;
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
rx_ind
=
get_queue
(
&
gnb_rx_ind_queue
);
rx_ind
=
get_queue
(
&
gnb_rx_ind_queue
);
if
(
!
rx_ind
)
if
(
!
rx_ind
)
...
@@ -353,7 +353,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
...
@@ -353,7 +353,7 @@ 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++)
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
int
last
=
UL_INFO
.
crc_ind
.
number_crcs
-
1
;
int
last
=
UL_INFO
.
crc_ind
.
number_crcs
-
1
;
if
(
j
<
last
)
if
(
j
<
last
)
...
@@ -379,7 +379,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
...
@@ -379,7 +379,7 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
}
}
}
}
}
// for (i=0;i<UL_INFO.rx_ind.number_of_pdus;i++)
}
// for (i=0;i<UL_INFO.rx_ind.number_of_pdus;i++)
if
(
get_softmodem_params
()
->
nsa
)
if
(
get_softmodem_params
()
->
emulate_l1
)
{
{
if
(
UL_INFO
.
crc_ind
.
number_crcs
>
0
)
if
(
UL_INFO
.
crc_ind
.
number_crcs
>
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