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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
d2415060
Commit
d2415060
authored
Nov 23, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for L2 simulator
parent
65bcbabd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+7
-1
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
d2415060
...
@@ -364,7 +364,7 @@ void nr_get_prach_resources(module_id_t mod_id,
...
@@ -364,7 +364,7 @@ void nr_get_prach_resources(module_id_t mod_id,
NR_PRACH_RESOURCES_t
*
prach_resources
,
NR_PRACH_RESOURCES_t
*
prach_resources
,
NR_RACH_ConfigDedicated_t
*
rach_ConfigDedicated
);
NR_RACH_ConfigDedicated_t
*
rach_ConfigDedicated
);
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
NR_UE_HARQ_STATUS_t
*
current_harq
,
int
ack_nack
);
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
int
pid
,
int
ack_nack
);
void
configure_initial_pucch
(
PUCCH_sched_t
*
pucch
,
int
res_ind
);
void
configure_initial_pucch
(
PUCCH_sched_t
*
pucch
,
int
res_ind
);
void
init_RA
(
module_id_t
mod_id
,
void
init_RA
(
module_id_t
mod_id
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
View file @
d2415060
...
@@ -951,8 +951,9 @@ void nr_ra_failed(uint8_t mod_id, uint8_t CC_id, NR_PRACH_RESOURCES_t *prach_res
...
@@ -951,8 +951,9 @@ void nr_ra_failed(uint8_t mod_id, uint8_t CC_id, NR_PRACH_RESOURCES_t *prach_res
}
}
}
}
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
NR_UE_HARQ_STATUS_t
*
current_harq
,
int
ack_nack
)
void
prepare_msg4_feedback
(
NR_UE_MAC_INST_t
*
mac
,
int
pid
,
int
ack_nack
)
{
{
NR_UE_HARQ_STATUS_t
*
current_harq
=
&
mac
->
dl_harq_info
[
pid
];
int
sched_slot
=
current_harq
->
ul_slot
;
int
sched_slot
=
current_harq
->
ul_slot
;
int
sched_frame
=
current_harq
->
ul_frame
;
int
sched_frame
=
current_harq
->
ul_frame
;
fapi_nr_ul_config_request_t
*
ul_config
=
get_ul_config_request
(
mac
,
sched_slot
,
0
);
fapi_nr_ul_config_request_t
*
ul_config
=
get_ul_config_request
(
mac
,
sched_slot
,
0
);
...
@@ -970,6 +971,11 @@ void prepare_msg4_feedback(NR_UE_MAC_INST_t *mac, NR_UE_HARQ_STATUS_t *current_h
...
@@ -970,6 +971,11 @@ void prepare_msg4_feedback(NR_UE_MAC_INST_t *mac, NR_UE_HARQ_STATUS_t *current_h
pucch
.
n_harq
=
1
;
pucch
.
n_harq
=
1
;
current_harq
->
active
=
false
;
current_harq
->
active
=
false
;
current_harq
->
ack_received
=
false
;
current_harq
->
ack_received
=
false
;
if
(
get_softmodem_params
()
->
emulate_l1
)
{
mac
->
nr_ue_emul_l1
.
harq
[
pid
].
active
=
true
;
mac
->
nr_ue_emul_l1
.
harq
[
pid
].
active_dl_harq_sfn
=
sched_frame
;
mac
->
nr_ue_emul_l1
.
harq
[
pid
].
active_dl_harq_slot
=
sched_slot
;
}
nr_ue_configure_pucch
(
mac
,
nr_ue_configure_pucch
(
mac
,
sched_slot
,
sched_slot
,
mac
->
ra
.
t_crnti
,
mac
->
ra
.
t_crnti
,
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
d2415060
...
@@ -1112,7 +1112,7 @@ void update_harq_status(module_id_t module_id, uint8_t harq_pid, uint8_t ack_nac
...
@@ -1112,7 +1112,7 @@ void update_harq_status(module_id_t module_id, uint8_t harq_pid, uint8_t ack_nac
LOG_D
(
PHY
,
"Updating harq_status for harq_id %d, ack/nak %d
\n
"
,
harq_pid
,
current_harq
->
ack
);
LOG_D
(
PHY
,
"Updating harq_status for harq_id %d, ack/nak %d
\n
"
,
harq_pid
,
current_harq
->
ack
);
// we can prepare feedback for MSG4 in advance
// we can prepare feedback for MSG4 in advance
if
(
mac
->
ra
.
ra_state
==
WAIT_CONTENTION_RESOLUTION
)
if
(
mac
->
ra
.
ra_state
==
WAIT_CONTENTION_RESOLUTION
)
prepare_msg4_feedback
(
mac
,
current_harq
,
ack_nack
);
prepare_msg4_feedback
(
mac
,
harq_pid
,
ack_nack
);
else
{
else
{
current_harq
->
ack
=
ack_nack
;
current_harq
->
ack
=
ack_nack
;
current_harq
->
ack_received
=
true
;
current_harq
->
ack_received
=
true
;
...
...
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