Do L1 configuration right after gNB initialization
* do always gNB init for L1 instance and also for CU and CU-CP * do L1 config only for L1 instances
This commit is contained in:
@@ -631,8 +631,12 @@ int main( int argc, char **argv ) {
|
|||||||
// don't create if node doesn't connect to RRC/S1/GTP
|
// don't create if node doesn't connect to RRC/S1/GTP
|
||||||
const ngran_node_t node_type = get_node_type();
|
const ngran_node_t node_type = get_node_type();
|
||||||
|
|
||||||
if (RC.nb_nr_L1_inst > 0)
|
if (RC.nb_nr_L1_inst > 0) {
|
||||||
|
// Initialize gNB structure in RAN context
|
||||||
|
init_gNB(wait_for_sync);
|
||||||
|
// Initialize L1
|
||||||
RCconfig_NR_L1();
|
RCconfig_NR_L1();
|
||||||
|
}
|
||||||
|
|
||||||
if (NFAPI_MODE != NFAPI_MODE_PNF) {
|
if (NFAPI_MODE != NFAPI_MODE_PNF) {
|
||||||
int ret = create_gNB_tasks(node_type, uniqCfg);
|
int ret = create_gNB_tasks(node_type, uniqCfg);
|
||||||
@@ -651,10 +655,6 @@ int main( int argc, char **argv ) {
|
|||||||
// start the main threads
|
// start the main threads
|
||||||
number_of_cards = 1;
|
number_of_cards = 1;
|
||||||
|
|
||||||
if (RC.nb_nr_L1_inst > 0) {
|
|
||||||
init_gNB(wait_for_sync);
|
|
||||||
}
|
|
||||||
|
|
||||||
wait_gNBs();
|
wait_gNBs();
|
||||||
int sl_ahead = NFAPI_MODE == NFAPI_MODE_AERIAL ? 0 : 6;
|
int sl_ahead = NFAPI_MODE == NFAPI_MODE_AERIAL ? 0 : 6;
|
||||||
if (RC.nb_RU >0) {
|
if (RC.nb_RU >0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user