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
dfed62bd
Commit
dfed62bd
authored
Mar 30, 2026
by
Bartosz Podrygajlo
Committed by
francescomani
Apr 08, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better stubs for test_nr_ue_ra_procedures
parent
edd76118
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
16 deletions
+47
-16
openair2/LAYER2/NR_MAC_UE/tests/CMakeLists.txt
openair2/LAYER2/NR_MAC_UE/tests/CMakeLists.txt
+1
-1
openair2/LAYER2/NR_MAC_UE/tests/test_nr_ue_ra_procedures.cpp
openair2/LAYER2/NR_MAC_UE/tests/test_nr_ue_ra_procedures.cpp
+46
-15
No files found.
openair2/LAYER2/NR_MAC_UE/tests/CMakeLists.txt
View file @
dfed62bd
...
...
@@ -8,7 +8,7 @@ add_test(NAME test_nr_ue_power_procedures
COMMAND ./test_nr_ue_power_procedures
)
add_executable
(
test_nr_ue_ra_procedures test_nr_ue_ra_procedures.cpp
)
target_link_libraries
(
test_nr_ue_ra_procedures PRIVATE nr_ue_ra_procedures nr_ue_power_procedures GTest::gtest minimal_lib
)
target_link_libraries
(
test_nr_ue_ra_procedures PRIVATE nr_ue_ra_procedures nr_ue_power_procedures GTest::gtest minimal_lib
MAC_UE_NR
)
add_dependencies
(
tests test_nr_ue_ra_procedures
)
add_test
(
NAME test_nr_ue_ra_procedures
COMMAND ./test_nr_ue_ra_procedures
)
openair2/LAYER2/NR_MAC_UE/tests/test_nr_ue_ra_procedures.cpp
View file @
dfed62bd
...
...
@@ -6,6 +6,8 @@
extern
"C"
{
#include "openair2/LAYER2/NR_MAC_UE/mac_proto.h"
#include "executables/softmodem-common.h"
#include "openair2/LAYER2/nr_rlc/nr_rlc_oai_api.h"
#include "common/utils/ocp_itti/intertask_interface.h"
static
softmodem_params_t
softmodem_params
;
softmodem_params_t
*
get_softmodem_params
(
void
)
...
...
@@ -18,6 +20,12 @@ void nr_mac_rrc_ra_ind(const module_id_t mod_id, bool success)
void
nr_mac_rrc_msg3_ind
(
const
module_id_t
mod_id
,
const
int
rnti
,
bool
prepare_payload
)
{
}
void
nr_mac_rlc_status_ind
(
uint16_t
ue_id
,
frame_t
frame
,
int
n_ch
,
const
logical_chan_id_t
*
ch
,
mac_rlc_status_resp_t
*
ret
)
{
}
void
nr_mac_rrc_inactivity_timer_ind
(
const
module_id_t
mod_id
)
{
}
tbs_size_t
nr_mac_rlc_data_req
(
const
module_id_t
module_idP
,
const
uint16_t
ue_id
,
const
bool
gnb_flagP
,
...
...
@@ -27,32 +35,55 @@ tbs_size_t nr_mac_rlc_data_req(const module_id_t module_idP,
{
return
0
;
}
fapi_nr_ul_config_request_pdu_t
*
lockGet_ul_config
(
NR_UE_MAC_INST_t
*
mac
,
frame_t
frame_tx
,
int
slot_tx
,
uint8_t
pdu_type
)
void
nr_mac_rlc_data_ind
(
const
module_id_t
module_idP
,
const
uint16_t
ue_id
,
const
bool
gnb_flagP
,
const
nr_rlc_data_ind_t
*
data
,
int
num_data
)
{
}
bool
nr_rlc_activate_srb0
(
int
ue_id
,
void
*
data
,
void
(
*
send_initial_ul_rrc_message
)(
int
ue_id
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
))
{
return
nullptr
;
return
true
;
}
void
release_ul_config
(
fapi_nr_ul_config_request_pdu_t
*
configPerSlot
,
bool
clearIt
)
int
nr_rlc_module_init
(
nr_rlc_op_mode_t
mode
)
{
return
0
;
}
void
remove_ul_config_last_item
(
fapi_nr_ul_config_request_pdu_t
*
pdu
)
MessageDef
*
itti_alloc_new_message
(
task_id_t
origin_task_id
,
instance_t
originInstance
,
MessagesIds
message_id
)
{
return
NULL
;
}
int
nr_ue_configure_pucch
(
NR_UE_MAC_INST_t
*
mac
,
int
slot
,
frame_t
frame
,
uint16_t
rnti
,
PUCCH_sched_t
*
pucch
,
fapi_nr_ul_config_pucch_pdu
*
pucch_pdu
)
int
itti_send_msg_to_task
(
task_id_t
task_id
,
instance_t
instance
,
MessageDef
*
message
)
{
return
0
;
}
NR_UE_DL_BWP_t
*
get_dl_bwp_structure
(
NR_UE_MAC_INST_t
*
mac
,
int
bwp_id
,
bool
setup
)
typedef
uint32_t
channel_t
;
int8_t
nr_mac_rrc_data_ind_ue
(
const
module_id_t
module_id
,
const
int
CC_id
,
const
uint8_t
gNB_index
,
const
int
hfn
,
const
frame_t
frame
,
const
int
slot
,
const
rnti_t
rnti
,
const
uint32_t
cellid
,
const
long
arfcn
,
const
channel_t
channel
,
const
uint8_t
*
pduP
,
const
sdu_size_t
pdu_len
)
{
return
NULL
;
return
0
;
}
NR_UE_UL_BWP_t
*
get_ul_bwp_structure
(
NR_UE_MAC_INST_t
*
mac
,
int
bwp_id
,
bool
setup
)
void
nr_mac_rrc_meas_ind_ue
(
module_id_t
module_id
,
uint32_t
gNB_index
,
uint16_t
Nid_cell
,
bool
csi_meas
,
bool
is_neighboring_cell
,
int
rsrp_dBm
)
{
return
NULL
;
}
}
#include <cstdio>
...
...
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