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
b13fce53
Commit
b13fce53
authored
Nov 08, 2021
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed NSA mode further in nrUE codes and fixed format.
parent
d51314f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
22 deletions
+8
-22
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+3
-16
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+2
-3
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+3
-3
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
b13fce53
...
...
@@ -599,12 +599,6 @@ int nr_ue_process_dci_indication_pdu(module_id_t module_id,int cc_id, int gNB_in
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
module_id
);
dci_pdu_rel15_t
*
def_dci_pdu_rel15
=
&
mac
->
def_dci_pdu_rel15
[
dci
->
dci_format
];
if
((
dci
->
rnti
!=
mac
->
crnti
)
&&
(
dci
->
rnti
!=
mac
->
ra
.
ra_rnti
)
&&
(
get_softmodem_params
()
->
nsa
))
{
LOG_D
(
MAC
,
"We skip for the received dci indication rnti %4x != mac->crnti %4x frame slot %4d.%2d RA state %d
\n
"
,
dci
->
rnti
,
mac
->
crnti
,
frame
,
slot
,
mac
->
ra
.
ra_state
);
return
0
;
}
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
);
...
...
@@ -733,11 +727,9 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
LOG_W
(
MAC
,
"In %s: ul_config request is NULL. Probably due to unexpected UL DCI in frame.slot %d.%d. Ignoring DCI!
\n
"
,
__FUNCTION__
,
frame
,
slot
);
return
-
1
;
}
if
(
get_softmodem_params
()
->
nsa
)
{
ul_config
->
number_pdus
=
0
;
AssertFatal
(
ul_config
->
number_pdus
<
sizeof
(
ul_config
->
ul_config_list
)
/
sizeof
(
ul_config
->
ul_config_list
[
0
]),
"Number of PDUS in ul_config = %d > ul_config_list num elements"
,
ul_config
->
number_pdus
);
}
ul_config
->
number_pdus
=
0
;
AssertFatal
(
ul_config
->
number_pdus
<
sizeof
(
ul_config
->
ul_config_list
)
/
sizeof
(
ul_config
->
ul_config_list
[
0
]),
"Number of PDUS in ul_config = %d > ul_config_list num elements"
,
ul_config
->
number_pdus
);
nfapi_nr_ue_pusch_pdu_t
*
pusch_config_pdu
=
&
ul_config
->
ul_config_list
[
ul_config
->
number_pdus
].
pusch_config_pdu
;
fill_ul_config
(
ul_config
,
frame_tx
,
slot_tx
,
FAPI_NR_UL_CONFIG_TYPE_PUSCH
);
...
...
@@ -3803,11 +3795,6 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
LOG_D
(
NR_MAC
,
"In %s:[%d.%d]: [UE %d][RAPROC] invoking MAC for received RAR (current preamble %d)
\n
"
,
__FUNCTION__
,
frame
,
slot
,
mod_id
,
preamble_index
);
if
((
mac
->
crnti
==
ra
->
t_crnti
)
&&
(
get_softmodem_params
()
->
nsa
))
{
LOG_D
(
MAC
,
"Discarding the received RAR.
\n
"
);
return
-
1
;
}
while
(
1
)
{
n_subheaders
++
;
if
(
rarh
->
T
==
1
)
{
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
b13fce53
...
...
@@ -163,7 +163,7 @@ fapi_nr_ul_config_request_t *get_ul_config_request(NR_UE_MAC_INST_t *mac, int sl
num_slots_ul
,
index
);
if
(
!
mac
->
ul_config_request
&&
get_softmodem_params
()
->
nsa
)
if
(
!
mac
->
ul_config_request
)
return
NULL
;
return
&
mac
->
ul_config_request
[
index
];
}
...
...
@@ -911,8 +911,7 @@ NR_UE_L2_STATE_t nr_ue_scheduler(nr_downlink_indication_t *dl_info, nr_uplink_in
dcireq
.
slot
=
rx_slot
;
dcireq
.
dl_config_req
.
number_pdus
=
0
;
nr_ue_dcireq
(
&
dcireq
);
//to be replaced with function pointer later
if
(
get_softmodem_params
()
->
nsa
)
mac
->
dl_config_request
=
dcireq
.
dl_config_req
;
mac
->
dl_config_request
=
dcireq
.
dl_config_req
;
fill_scheduled_response
(
&
scheduled_response
,
&
dcireq
.
dl_config_req
,
NULL
,
NULL
,
mod_id
,
cc_id
,
rx_frame
,
rx_slot
,
dl_info
->
thread_id
);
if
(
mac
->
if_module
!=
NULL
&&
mac
->
if_module
->
scheduled_response
!=
NULL
)
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
b13fce53
...
...
@@ -278,9 +278,9 @@ void handle_nr_ulsch(NR_UL_IND_t *UL_info)
int
sfn_slot
=
NFAPI_SFNSLOT2HEX
(
rx_ind
->
sfn
,
rx_ind
->
slot
);
crc_ind
=
unqueue_matching
(
&
gnb_crc_ind_queue
,
MAX_QUEUE_SIZE
,
crc_sfn_slot_matcher
,
&
sfn_slot
);
MAX_QUEUE_SIZE
,
crc_sfn_slot_matcher
,
&
sfn_slot
);
if
(
!
crc_ind
)
{
LOG_D
(
NR_PHY
,
"No crc indication with the same SFN SLOT of rx indication %u %u
\n
"
,
rx_ind
->
sfn
,
rx_ind
->
slot
);
...
...
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