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
spbro
OpenXG-RAN
Commits
ab537c66
Commit
ab537c66
authored
Jul 06, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove mac flag phy_config_request_sent
parent
bd721c3b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
36 deletions
+17
-36
executables/nr-ue.c
executables/nr-ue.c
+2
-5
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+0
-2
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+1
-5
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+3
-5
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
+7
-4
openair1/SCHED_NR_UE/fapi_nr_ue_l1.h
openair1/SCHED_NR_UE/fapi_nr_ue_l1.h
+1
-1
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+0
-2
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+0
-2
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+0
-1
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+2
-2
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.h
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.h
+1
-7
No files found.
executables/nr-ue.c
View file @
ab537c66
...
...
@@ -447,10 +447,7 @@ static void RU_write(nr_rxtx_thread_data_t *rxtxD, bool sl_tx_action)
radio_tx_burst_flag_t
flags
=
TX_BURST_INVALID
;
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
UE
->
Mod_id
);
if
(
mac
->
phy_config_request_sent
&&
openair0_cfg
[
0
].
duplex_mode
==
duplex_mode_TDD
&&
!
get_softmodem_params
()
->
continuous_tx
)
{
if
(
UE
->
received_config_request
&&
openair0_cfg
[
0
].
duplex_mode
==
duplex_mode_TDD
&&
!
get_softmodem_params
()
->
continuous_tx
)
{
// In case of Sidelink, USRP write needed only in case transmission
// needs to be done in this slot and not based on tdd ULDL configuration.
if
(
UE
->
sl_mode
==
2
)
{
...
...
@@ -927,7 +924,7 @@ void *UE_thread(void *arg)
curMsg
.
proc
.
nr_slot_tx
=
(
absolute_slot
+
DURATION_RX_TO_TX
)
%
nb_slot_frame
;
curMsg
.
proc
.
frame_rx
=
(
absolute_slot
/
nb_slot_frame
)
%
MAX_FRAME_NUMBER
;
curMsg
.
proc
.
frame_tx
=
((
absolute_slot
+
DURATION_RX_TO_TX
)
/
nb_slot_frame
)
%
MAX_FRAME_NUMBER
;
if
(
mac
->
phy_config_request_sen
t
)
{
if
(
UE
->
received_config_reques
t
)
{
if
(
UE
->
sl_mode
)
{
curMsg
.
proc
.
rx_slot_type
=
sl_nr_ue_slot_select
(
sl_cfg
,
curMsg
.
proc
.
nr_slot_rx
,
TDD
);
curMsg
.
proc
.
tx_slot_type
=
sl_nr_ue_slot_select
(
sl_cfg
,
curMsg
.
proc
.
nr_slot_tx
,
TDD
);
...
...
executables/nr-uesoftmodem.c
View file @
ab537c66
...
...
@@ -517,7 +517,6 @@ int main(int argc, char **argv)
}
else
{
DevAssert
(
mac
->
if_module
!=
NULL
&&
mac
->
if_module
->
phy_config_request
!=
NULL
);
mac
->
if_module
->
phy_config_request
(
&
mac
->
phy_config
);
mac
->
phy_config_request_sent
=
true
;
fapi_nr_config_request_t
*
nrUE_config
=
&
UE
[
CC_id
]
->
nrUE_config
;
nr_init_frame_parms_ue
(
&
UE
[
CC_id
]
->
frame_parms
,
nrUE_config
,
mac
->
nr_band
);
...
...
@@ -533,7 +532,6 @@ int main(int argc, char **argv)
phycfg
->
sl_config_req
.
sl_carrier_config
.
sl_num_rx_ant
=
get_nrUE_params
()
->
nb_antennas_rx
;
phycfg
->
sl_config_req
.
sl_carrier_config
.
sl_num_tx_ant
=
get_nrUE_params
()
->
nb_antennas_tx
;
mac
->
if_module
->
sl_phy_config_request
(
phycfg
);
mac
->
phy_config_request_sent
=
true
;
sl_nr_ue_phy_params_t
*
sl_phy
=
&
UE
[
CC_id
]
->
SL_UE_PHY_PARAMS
;
nr_init_frame_parms_ue_sl
(
&
sl_phy
->
sl_frame_params
,
&
sl_phy
->
sl_config
,
...
...
openair1/PHY/INIT/nr_init_ue.c
View file @
ab537c66
...
...
@@ -277,11 +277,7 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
}
ue
->
init_averaging
=
1
;
// enable MIB/SIB decoding by default
ue
->
decode_MIB
=
1
;
ue
->
decode_SIB
=
1
;
ue
->
received_config_request
=
false
;
init_nr_prach_tables
(
839
);
init_symbol_rotation
(
fp
);
init_timeshift_rotation
(
fp
);
...
...
openair1/PHY/defs_nr_UE.h
View file @
ab537c66
...
...
@@ -383,7 +383,7 @@ typedef struct PHY_VARS_NR_UE_s {
NR_UE_COMMON
common_vars
;
nr_ue_if_module_t
*
if_inst
;
bool
received_config_request
;
fapi_nr_config_request_t
nrUE_config
;
nr_synch_request_t
synch_request
;
...
...
@@ -449,11 +449,9 @@ typedef struct PHY_VARS_NR_UE_s {
int
dlsch_mtch_errors
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mcch_trials
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mtch_trials
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
uint8_t
decode_SIB
;
uint8_t
decode_MIB
;
uint8_t
init_sync_frame
;
uint8_t
init_sync_frame
;
/// temporary offset during cell search prior to MIB decoding
int
ssb_offset
;
int
ssb_offset
;
uint16_t
symbol_offset
;
/// offset in terms of symbols for detected ssb in sync
int64_t
max_pos_avg
;
/// Timing offset IIR filter
...
...
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
View file @
ab537c66
...
...
@@ -549,13 +549,14 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response)
return
0
;
}
int8_t
nr_ue_phy_config_request
(
nr_phy_config_t
*
phy_config
)
void
nr_ue_phy_config_request
(
nr_phy_config_t
*
phy_config
)
{
fapi_nr_config_request_t
*
nrUE_config
=
&
PHY_vars_UE_g
[
phy_config
->
Mod_id
][
phy_config
->
CC_id
]
->
nrUE_config
;
PHY_VARS_NR_UE
*
phy
=
PHY_vars_UE_g
[
phy_config
->
Mod_id
][
phy_config
->
CC_id
];
fapi_nr_config_request_t
*
nrUE_config
=
&
phy
->
nrUE_config
;
if
(
phy_config
!=
NULL
)
{
phy
->
received_config_request
=
true
;
memcpy
(
nrUE_config
,
&
phy_config
->
config_req
,
sizeof
(
fapi_nr_config_request_t
));
}
return
0
;
}
void
nr_ue_synch_request
(
nr_synch_request_t
*
synch_request
)
...
...
@@ -567,8 +568,10 @@ void nr_ue_synch_request(nr_synch_request_t *synch_request)
void
nr_ue_sl_phy_config_request
(
nr_sl_phy_config_t
*
phy_config
)
{
sl_nr_phy_config_request_t
*
sl_config
=
&
PHY_vars_UE_g
[
phy_config
->
Mod_id
][
phy_config
->
CC_id
]
->
SL_UE_PHY_PARAMS
.
sl_config
;
PHY_VARS_NR_UE
*
phy
=
PHY_vars_UE_g
[
phy_config
->
Mod_id
][
phy_config
->
CC_id
];
sl_nr_phy_config_request_t
*
sl_config
=
&
phy
->
SL_UE_PHY_PARAMS
.
sl_config
;
if
(
phy_config
!=
NULL
)
{
phy
->
received_config_request
=
true
;
memcpy
(
sl_config
,
&
phy_config
->
sl_config_req
,
sizeof
(
sl_nr_phy_config_request_t
));
}
}
...
...
openair1/SCHED_NR_UE/fapi_nr_ue_l1.h
View file @
ab537c66
...
...
@@ -46,7 +46,7 @@ int8_t nr_ue_scheduled_response_stub(nr_scheduled_response_t *scheduled_response
/**\brief NR UE FAPI-like P5 message, physical configuration from L2 to configure L1
\param scheduled_response including transmission config(dl_config, ul_config) and data transmission (tx_req)*/
int8_t
nr_ue_phy_config_request
(
nr_phy_config_t
*
phy_config
);
void
nr_ue_phy_config_request
(
nr_phy_config_t
*
phy_config
);
void
nr_ue_sl_phy_config_request
(
nr_sl_phy_config_t
*
phy_config
);
/**\brief NR UE FAPI message to schedule a synchronization with target gNB
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
ab537c66
...
...
@@ -1608,7 +1608,6 @@ void nr_rrc_mac_config_req_sib1(module_id_t module_id,
if
(
!
get_softmodem_params
()
->
emulate_l1
)
mac
->
if_module
->
phy_config_request
(
&
mac
->
phy_config
);
mac
->
phy_config_request_sent
=
true
;
}
void
nr_rrc_mac_config_req_sib19_r17
(
module_id_t
module_id
,
...
...
@@ -1664,7 +1663,6 @@ static void handle_reconfiguration_with_sync(NR_UE_MAC_INST_t *mac,
mac
->
synch_request
.
synch_req
.
target_Nid_cell
=
mac
->
physCellId
;
mac
->
if_module
->
synch_request
(
&
mac
->
synch_request
);
mac
->
if_module
->
phy_config_request
(
&
mac
->
phy_config
);
mac
->
phy_config_request_sent
=
true
;
}
}
...
...
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
ab537c66
...
...
@@ -527,8 +527,6 @@ typedef struct NR_UE_MAC_INST_s {
NR_UL_TIME_ALIGNMENT_t
ul_time_alignment
;
NR_TDD_UL_DL_ConfigCommon_t
*
tdd_UL_DL_ConfigurationCommon
;
bool
phy_config_request_sent
;
frame_type_t
frame_type
;
/* Random Access */
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
ab537c66
...
...
@@ -59,7 +59,6 @@ void nr_ue_init_mac(NR_UE_MAC_INST_t *mac)
nr_ue_reset_sync_state
(
mac
);
mac
->
get_sib1
=
false
;
mac
->
get_otherSI
=
false
;
mac
->
phy_config_request_sent
=
false
;
memset
(
&
mac
->
phy_config
,
0
,
sizeof
(
mac
->
phy_config
));
mac
->
si_window_start
=
-
1
;
mac
->
servCellIndex
=
0
;
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
ab537c66
...
...
@@ -346,7 +346,7 @@ static bool is_my_dci(NR_UE_MAC_INST_t *mac, nfapi_nr_dl_dci_pdu_t *received_pdu
if
(
get_softmodem_params
()
->
sa
)
{
if
(
mac
->
state
==
UE_NOT_SYNC
)
return
false
;
if
(
received_pdu
->
RNTI
==
0xFFFF
&&
mac
->
phy_config_request_sent
)
if
(
received_pdu
->
RNTI
==
0xFFFF
)
return
false
;
if
(
received_pdu
->
RNTI
!=
mac
->
crnti
&&
mac
->
ra
.
ra_state
==
nrRA_SUCCEEDED
)
return
false
;
...
...
@@ -1149,7 +1149,7 @@ int nr_ue_ul_indication(nr_uplink_indication_t *ul_info)
LOG_T
(
NR_MAC
,
"Not calling scheduler mac->ra.ra_state = %d
\n
"
,
mac
->
ra
.
ra_state
);
if
(
mac
->
phy_config_request_sent
&&
is_nr_UL_slot
(
mac
->
tdd_UL_DL_ConfigurationCommon
,
ul_info
->
slot
,
mac
->
frame_type
))
if
(
is_nr_UL_slot
(
mac
->
tdd_UL_DL_ConfigurationCommon
,
ul_info
->
slot
,
mac
->
frame_type
))
nr_ue_ul_scheduler
(
mac
,
ul_info
);
pthread_mutex_unlock
(
&
mac_IF_mutex
);
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.h
View file @
ab537c66
...
...
@@ -216,18 +216,12 @@ typedef void (nr_sl_ue_scheduled_response_f)(nr_scheduled_response_t *sl_schedul
/*
* Generic type of an application-defined callback to return various
* types of data to the application.
* EXPECTED RETURN VALUES:
* -1: Failed to consume bytes. Abort the mission.
* Non-negative return values indicate success, and ignored.
*/
typedef
int8_t
(
nr_ue_phy_config_request_f
)(
nr_phy_config_t
*
phy_config
);
typedef
void
(
nr_ue_phy_config_request_f
)(
nr_phy_config_t
*
phy_config
);
/*
* Generic type of an application-defined callback to return various
* types of data to the application.
* EXPECTED RETURN VALUES:
* -1: Failed to consume bytes. Abort the mission.
* Non-negative return values indicate success, and ignored.
*/
typedef
void
(
nr_ue_sl_phy_config_request_f
)(
nr_sl_phy_config_t
*
sl_phy_config
);
...
...
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