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
262efe79
Commit
262efe79
authored
Sep 01, 2021
by
Deokseong "David" Kim
Committed by
Melissa
Sep 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to handle multiple UEs and typo bug.
parent
bfa8c835
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
executables/nr-ue.c
executables/nr-ue.c
+4
-2
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+9
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+4
-0
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+3
-3
No files found.
executables/nr-ue.c
View file @
262efe79
...
...
@@ -158,6 +158,7 @@ void init_nrUE_standalone_thread(int ue_idx)
static
void
L1_nsa_prach_procedures
(
frame_t
frame
,
int
slot
,
fapi_nr_ul_config_prach_pdu
*
prach_pdu
)
{
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
0
);
nfapi_nr_rach_indication_t
*
rach_ind
=
CALLOC
(
1
,
sizeof
(
*
rach_ind
));
rach_ind
->
sfn
=
frame
;
rach_ind
->
slot
=
slot
;
...
...
@@ -176,7 +177,8 @@ static void L1_nsa_prach_procedures(frame_t frame, int slot, fapi_nr_ul_config_p
rach_ind
->
pdu_list
[
pdu_index
].
num_preamble
=
1
;
const
int
num_p
=
rach_ind
->
pdu_list
[
pdu_index
].
num_preamble
;
rach_ind
->
pdu_list
[
pdu_index
].
preamble_list
=
calloc
(
num_p
,
sizeof
(
nfapi_nr_prach_indication_preamble_t
));
rach_ind
->
pdu_list
[
pdu_index
].
preamble_list
[
0
].
preamble_index
=
63
;
//Melissa, need to get this out of rrc_reconfig_msg
rach_ind
->
pdu_list
[
pdu_index
].
preamble_list
[
0
].
preamble_index
=
mac
->
ra
.
rach_ConfigDedicated
->
cfra
->
resources
.
choice
.
ssb
->
ssb_ResourceList
.
list
.
array
[
0
]
->
ra_PreambleIndex
;
rach_ind
->
pdu_list
[
pdu_index
].
preamble_list
[
0
].
timing_advance
=
0
;
rach_ind
->
pdu_list
[
pdu_index
].
preamble_list
[
0
].
preamble_pwr
=
0xffffffff
;
...
...
@@ -295,7 +297,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
ul_info
.
frame_tx
=
(
ul_info
.
slot_rx
+
slot_ahead
>=
slots_per_frame
)
?
ul_info
.
frame_rx
+
1
:
ul_info
.
frame_rx
;
ul_info
.
ue_sched_mode
=
SCHED_ALL
;
if
(
pthread_mutex_
un
lock
(
&
mac
->
mutex_dl_info
))
abort
();
if
(
pthread_mutex_lock
(
&
mac
->
mutex_dl_info
))
abort
();
memset
(
&
mac
->
dl_info
,
0
,
sizeof
(
mac
->
dl_info
));
mac
->
dl_info
.
cc_id
=
CC_id
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
262efe79
...
...
@@ -510,10 +510,15 @@ int nr_ue_process_dci_indication_pdu(module_id_t module_id,int cc_id, int gNB_in
LOG_D
(
MAC
,
"Received dci indication (rnti %x,dci format %d,n_CCE %d,payloadSize %d,payload %llx)
\n
"
,
dci
->
rnti
,
dci
->
dci_format
,
dci
->
n_CCE
,
dci
->
payloadSize
,
*
(
unsigned
long
long
*
)
dci
->
payloadBits
);
int8_t
ret
=
nr_extract_dci_info
(
mac
,
dci
->
dci_format
,
dci
->
payloadSize
,
dci
->
rnti
,
(
uint64_t
*
)
dci
->
payloadBits
,
def_dci_pdu_rel15
);
if
((
ret
&
1
)
==
1
)
return
-
1
;
else
if
(
ret
==
2
)
dci
->
dci_format
=
NR_UL_DCI_FORMAT_0_0
;
return
(
nr_ue_process_dci
(
module_id
,
cc_id
,
gNB_index
,
frame
,
slot
,
def_dci_pdu_rel15
,
dci
));
if
((
dci
->
rnti
==
mac
->
crnti
)
||
(
dci
->
rnti
==
mac
->
ra
.
ra_rnti
))
{
int8_t
ret
=
nr_extract_dci_info
(
mac
,
dci
->
dci_format
,
dci
->
payloadSize
,
dci
->
rnti
,
(
uint64_t
*
)
dci
->
payloadBits
,
def_dci_pdu_rel15
);
if
((
ret
&
1
)
==
1
)
return
-
1
;
else
if
(
ret
==
2
)
dci
->
dci_format
=
NR_UL_DCI_FORMAT_0_0
;
return
(
nr_ue_process_dci
(
module_id
,
cc_id
,
gNB_index
,
frame
,
slot
,
def_dci_pdu_rel15
,
dci
));
}
return
0
;
}
int8_t
nr_ue_process_dci
(
module_id_t
module_id
,
int
cc_id
,
uint8_t
gNB_index
,
frame_t
frame
,
int
slot
,
dci_pdu_rel15_t
*
dci
,
fapi_nr_dci_indication_pdu_t
*
dci_ind
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
262efe79
...
...
@@ -527,6 +527,10 @@ void nr_initiate_ra_proc(module_id_t module_idP,
for
(
int
i
=
0
;
i
<
NR_NB_RA_PROC_MAX
;
i
++
)
{
NR_RA_t
*
ra
=
&
cc
->
ra
[
i
];
pr_found
=
0
;
const
int
UE_id
=
find_nr_UE_id
(
module_idP
,
ra
->
rnti
);
if
(
UE_id
!=
-
1
)
{
continue
;
}
if
(
ra
->
state
==
RA_IDLE
)
{
for
(
int
j
=
0
;
j
<
ra
->
preambles
.
num_preambles
;
j
++
)
{
//check if the preamble received correspond to one of the listed or configured preambles
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
262efe79
...
...
@@ -300,10 +300,10 @@ void NR_UL_indication(NR_UL_IND_t *UL_info) {
NR_Sched_Rsp_t
*
sched_info
=
&
NR_Sched_INFO
[
module_id
][
CC_id
];
NR_IF_Module_t
*
ifi
=
nr_if_inst
[
module_id
];
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
module_id
];
LOG_D
(
NR_PHY
,
"SFN/SLOT:%d.%d module_id:%d CC_id:%d UL_info[rach_pdus:%
d rx_ind:%d crcs:%d
]
\n
"
,
LOG_D
(
NR_PHY
,
"SFN/SLOT:%d.%d module_id:%d CC_id:%d UL_info[rach_pdus:%
zu rx_ind:%zu crcs:%zu
]
\n
"
,
UL_info
->
frame
,
UL_info
->
slot
,
module_id
,
CC_id
,
UL_info
->
rach_ind
.
number_of_pdu
s
,
UL_info
->
rx_ind
.
number_of_pdus
,
UL_info
->
crc_ind
.
number_crc
s
);
module_id
,
CC_id
,
gnb_rach_ind_queue
.
num_item
s
,
gnb_rx_ind_queue
.
num_items
,
gnb_crc_ind_queue
.
num_item
s
);
if
(
NFAPI_MODE
!=
NFAPI_MODE_PNF
)
{
...
...
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