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
zzha zzha
OpenXG-RAN
Commits
742800b8
Commit
742800b8
authored
Mar 02, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split rrc_mac_config_req_gNB() in multiple functions
parent
7668a891
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
236 additions
and
345 deletions
+236
-345
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+4
-4
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+3
-3
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+0
-24
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+185
-174
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+11
-11
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
+2
-14
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+25
-91
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+0
-1
openair2/RRC/NR/rrc_gNB_nsa.c
openair2/RRC/NR/rrc_gNB_nsa.c
+6
-23
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
742800b8
...
@@ -720,11 +720,11 @@ int main(int argc, char **argv)
...
@@ -720,11 +720,11 @@ int main(int argc, char **argv)
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
// common configuration
// common configuration
rrc_mac_config_req_gNB
(
0
,
pdsch_AntennaPorts
,
n_tx
,
0
,
6
,
scc
,
NULL
,
NULL
,
0
,
0
,
NULL
);
nr_mac_config_scc
(
RC
.
nrmac
[
0
],
pdsch_AntennaPorts
,
n_tx
,
0
,
6
,
scc
);
// UE dedicated configuration
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
pdsch_AntennaPorts
,
n_tx
,
0
,
6
,
scc
,
NULL
,
NULL
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
nr_mac_add_test_ue
(
RC
.
nrmac
[
0
],
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
// reset preprocessor to the one of DLSIM after it has been set during
// reset preprocessor to the one of DLSIM after it has been set during
//
rrc_mac_config_req_gNB
//
nr_mac_config_scc()
gNB_mac
->
pre_processor_dl
=
nr_dlsim_preprocessor
;
gNB_mac
->
pre_processor_dl
=
nr_dlsim_preprocessor
;
phy_init_nr_gNB
(
gNB
);
phy_init_nr_gNB
(
gNB
);
N_RB_DL
=
gNB
->
frame_parms
.
N_RB_DL
;
N_RB_DL
=
gNB
->
frame_parms
.
N_RB_DL
;
...
@@ -736,7 +736,7 @@ int main(int argc, char **argv)
...
@@ -736,7 +736,7 @@ int main(int argc, char **argv)
// nr_phy_config_request_sim(gNB,N_RB_DL,N_RB_DL,mu,Nid_cell,SSB_positions);
// nr_phy_config_request_sim(gNB,N_RB_DL,N_RB_DL,mu,Nid_cell,SSB_positions);
// call MAC to configure common parameters
// call MAC to configure common parameters
/*
rrc_mac_config_req_gNB
() has created one user, so set the scheduling
/*
nr_mac_add_test_ue
() has created one user, so set the scheduling
* parameters from command line in global variables that will be picked up by
* parameters from command line in global variables that will be picked up by
* scheduling preprocessor */
* scheduling preprocessor */
if
(
g_mcsIndex
<
0
)
g_mcsIndex
=
9
;
if
(
g_mcsIndex
<
0
)
g_mcsIndex
=
9
;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
742800b8
...
@@ -654,10 +654,10 @@ int main(int argc, char **argv)
...
@@ -654,10 +654,10 @@ int main(int argc, char **argv)
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
// common configuration
// common configuration
rrc_mac_config_req_gNB
(
0
,
conf
.
pdsch_AntennaPorts
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
rrc
.
carrier
.
siblock1
,
0
,
0
,
NULL
);
nr_mac_config_scc
(
RC
.
nrmac
[
0
],
conf
.
pdsch_AntennaPorts
,
n_tx
,
0
,
6
,
scc
);
nr_mac_config_mib
(
RC
.
nrmac
[
0
],
&
rrc
.
carrier
.
mib
);
// UE dedicated configuration
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
conf
.
pdsch_AntennaPorts
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
rrc
.
carrier
.
siblock1
,
1
,
nr_mac_add_test_ue
(
RC
.
nrmac
[
0
],
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
frame_parms
->
nb_antennas_tx
=
1
;
frame_parms
->
nb_antennas_tx
=
1
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
...
...
openair2/GNB_APP/gnb_config.c
View file @
742800b8
...
@@ -2084,24 +2084,6 @@ void du_extract_and_decode_SI(int inst, int si_ind, uint8_t *si_container, int s
...
@@ -2084,24 +2084,6 @@ void du_extract_and_decode_SI(int inst, int si_ind, uint8_t *si_container, int s
}
else
AssertFatal
(
1
==
0
,
"No SI messages
\n
"
);
}
else
AssertFatal
(
1
==
0
,
"No SI messages
\n
"
);
}
}
void
configure_gnb_du_mac
(
int
inst
)
{
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
inst
];
// LOG_I(GNB_APP,"Configuring MAC/L1 %d, carrier->sib2 %p\n", inst, &carrier->sib2->radioResourceConfigCommon);
LOG_I
(
GNB_APP
,
"Configuring gNB DU MAC/L1 %d
\n
"
,
inst
);
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
rrc
->
configuration
.
scc
,
NULL
,
NULL
,
0
,
0
,
// rnti
NULL
);
}
int
gNB_app_handle_f1ap_setup_resp
(
f1ap_setup_resp_t
*
resp
)
{
int
gNB_app_handle_f1ap_setup_resp
(
f1ap_setup_resp_t
*
resp
)
{
int
i
,
j
,
si_ind
;
int
i
,
j
,
si_ind
;
int
ret
=
0
;
int
ret
=
0
;
...
@@ -2126,9 +2108,6 @@ int gNB_app_handle_f1ap_setup_resp(f1ap_setup_resp_t *resp) {
...
@@ -2126,9 +2108,6 @@ int gNB_app_handle_f1ap_setup_resp(f1ap_setup_resp_t *resp) {
resp
->
cells_to_activate
[
j
].
SI_container
[
si_ind
],
resp
->
cells_to_activate
[
j
].
SI_container
[
si_ind
],
resp
->
cells_to_activate
[
j
].
SI_container_length
[
si_ind
]);
resp
->
cells_to_activate
[
j
].
SI_container_length
[
si_ind
]);
}
}
// perform MAC/L1 common configuration
configure_gnb_du_mac
(
i
);
ret
++
;
ret
++
;
}
else
{
}
else
{
LOG_E
(
GNB_APP
,
"F1 Setup Response not matching
\n
"
);
LOG_E
(
GNB_APP
,
"F1 Setup Response not matching
\n
"
);
...
@@ -2161,9 +2140,6 @@ int gNB_app_handle_f1ap_gnb_cu_configuration_update(f1ap_gnb_cu_configuration_up
...
@@ -2161,9 +2140,6 @@ int gNB_app_handle_f1ap_gnb_cu_configuration_update(f1ap_gnb_cu_configuration_up
gnb_cu_cfg_update
->
cells_to_activate
[
j
].
SI_container
[
si_ind
],
gnb_cu_cfg_update
->
cells_to_activate
[
j
].
SI_container
[
si_ind
],
gnb_cu_cfg_update
->
cells_to_activate
[
j
].
SI_container_length
[
si_ind
]);
gnb_cu_cfg_update
->
cells_to_activate
[
j
].
SI_container_length
[
si_ind
]);
}
}
// perform MAC/L1 common configuration
configure_gnb_du_mac
(
i
);
ret
++
;
ret
++
;
}
else
{
}
else
{
LOG_E
(
GNB_APP
,
"GNB_CU_CONFIGURATION_UPDATE not matching
\n
"
);
LOG_E
(
GNB_APP
,
"GNB_CU_CONFIGURATION_UPDATE not matching
\n
"
);
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
742800b8
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
742800b8
...
@@ -47,17 +47,17 @@ int nr_mac_enable_ue_rrc_processing_timer(module_id_t Mod_idP,
...
@@ -47,17 +47,17 @@ int nr_mac_enable_ue_rrc_processing_timer(module_id_t Mod_idP,
NR_SubcarrierSpacing_t
subcarrierSpacing
,
NR_SubcarrierSpacing_t
subcarrierSpacing
,
uint32_t
rrc_reconfiguration_delay
);
uint32_t
rrc_reconfiguration_delay
);
int
rrc_mac_config_req_gNB
(
module_id_t
Mod_idP
,
void
nr_mac_config_scc
(
gNB_MAC_INST
*
nrmac
,
rrc_pdsch_AntennaPorts_t
pdsch_AntennaPorts
,
rrc_pdsch_AntennaPorts_t
pdsch_AntennaPorts
,
int
pusch_AntennaPorts
,
int
pusch_AntennaPorts
,
int
sib1_tda
,
int
sib1_tda
,
int
minRXTXTIMEpdsch
,
int
minRXTXTIMEpdsch
,
NR_ServingCellConfigCommon_t
*
scc
,
NR_ServingCellConfigCommon_t
*
scc
);
NR_BCCH_BCH_Message_t
*
mib
,
void
nr_mac_config_mib
(
gNB_MAC_INST
*
nrmac
,
NR_BCCH_BCH_Message_t
*
mib
);
NR_BCCH_DL_SCH_Message_t
*
sib1
,
void
nr_mac_config_sib1
(
gNB_MAC_INST
*
nrmac
,
NR_BCCH_DL_SCH_Message_t
*
sib1
);
int
add_ue
,
bool
nr_mac_add_test_ue
(
gNB_MAC_INST
*
nrmac
,
uint32_t
rnti
,
NR_CellGroupConfig_t
*
CellGroup
);
uint32_t
rnti
,
bool
nr_mac_prepare_ra_nsa_ue
(
gNB_MAC_INST
*
nrmac
,
uint32_t
rnti
,
NR_CellGroupConfig_t
*
CellGroup
);
NR_CellGroupConfig_t
*
CellGroup
);
bool
nr_mac_update_cellgroup
(
gNB_MAC_INST
*
nrmac
,
uint32_t
rnti
,
NR_CellGroupConfig_t
*
CellGroup
);
void
clear_nr_nfapi_information
(
gNB_MAC_INST
*
gNB
,
void
clear_nr_nfapi_information
(
gNB_MAC_INST
*
gNB
,
int
CC_idP
,
int
CC_idP
,
...
...
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
View file @
742800b8
...
@@ -101,20 +101,8 @@ int dl_rrc_message_rrcSetup(module_id_t module_id, const f1ap_dl_rrc_message_t *
...
@@ -101,20 +101,8 @@ int dl_rrc_message_rrcSetup(module_id_t module_id, const f1ap_dl_rrc_message_t *
AssertFatal
(
dec_rval
.
code
==
RC_OK
,
"could not decode masterCellGroup
\n
"
);
AssertFatal
(
dec_rval
.
code
==
RC_OK
,
"could not decode masterCellGroup
\n
"
);
/* there might be a memory leak for the cell group if we call this multiple
/* there might be a memory leak for the cell group if we call this multiple
* times. Also, the first parameters of rrc_mac_config_req_gNB() are only
* times. */
* relevant when setting the scc, which we don't do (and cannot do) here. */
nr_mac_update_cellgroup
(
RC
.
nrmac
[
module_id
],
dl_rrc
->
rnti
,
cellGroup
);
rrc_pdsch_AntennaPorts_t
pap
=
{
0
};
rrc_mac_config_req_gNB
(
module_id
,
pap
,
/* only when scc != NULL */
0
,
/* only when scc != NULL */
0
,
/* only when scc != NULL */
0
,
/* only when scc != NULL */
NULL
,
/* scc */
NULL
,
/* mib */
NULL
,
/* sib1 */
0
,
/* add_ue */
dl_rrc
->
rnti
,
cellGroup
);
/* TODO: drop the RRC context */
/* TODO: drop the RRC context */
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
module_id
];
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
module_id
];
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
742800b8
...
@@ -176,17 +176,16 @@ static void init_NR_SI(gNB_RRC_INST *rrc, gNB_RrcConfigurationReq *configuration
...
@@ -176,17 +176,16 @@ static void init_NR_SI(gNB_RRC_INST *rrc, gNB_RrcConfigurationReq *configuration
LOG_I
(
NR_RRC
,
"Done init_NR_SI
\n
"
);
LOG_I
(
NR_RRC
,
"Done init_NR_SI
\n
"
);
if
(
NODE_IS_MONOLITHIC
(
rrc
->
node_type
)
||
NODE_IS_DU
(
rrc
->
node_type
)){
if
(
NODE_IS_MONOLITHIC
(
rrc
->
node_type
)
||
NODE_IS_DU
(
rrc
->
node_type
)){
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
// update SI info
rrc
->
configuration
.
pdsch_AntennaPorts
,
nr_mac_config_scc
(
RC
.
nrmac
[
rrc
->
module_id
],
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
minRXTXTIME
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
carrier
.
servingcellconfigcommon
,
rrc
->
configuration
.
minRXTXTIME
,
&
rrc
->
carrier
.
mib
,
rrc
->
carrier
.
servingcellconfigcommon
);
rrc
->
carrier
.
siblock1
,
nr_mac_config_mib
(
RC
.
nrmac
[
rrc
->
module_id
],
&
rrc
->
carrier
.
mib
);
0
,
if
(
get_softmodem_params
()
->
sa
)
0
,
// WIP hardcoded rnti
nr_mac_config_sib1
(
RC
.
nrmac
[
rrc
->
module_id
],
rrc
->
carrier
.
siblock1
);
NULL
);
}
}
/* set flag to indicate that cell information is configured. This is required
/* set flag to indicate that cell information is configured. This is required
...
@@ -306,17 +305,7 @@ unsigned int rrc_gNB_get_next_transaction_identifier(module_id_t gnb_mod_idP)
...
@@ -306,17 +305,7 @@ unsigned int rrc_gNB_get_next_transaction_identifier(module_id_t gnb_mod_idP)
static
void
apply_macrlc_config
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
)
static
void
apply_macrlc_config
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
)
{
{
NR_CellGroupConfig_t
*
cgc
=
get_softmodem_params
()
->
sa
?
ue_context_pP
->
ue_context
.
masterCellGroup
:
NULL
;
NR_CellGroupConfig_t
*
cgc
=
get_softmodem_params
()
->
sa
?
ue_context_pP
->
ue_context
.
masterCellGroup
:
NULL
;
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
nr_mac_update_cellgroup
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_pP
->
ue_context
.
rnti
,
cgc
);
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_context_pP
->
ue_context
.
rnti
,
cgc
);
nr_rrc_rlc_config_asn1_req
(
ctxt_pP
,
nr_rrc_rlc_config_asn1_req
(
ctxt_pP
,
ue_context_pP
->
ue_context
.
SRB_configList
,
ue_context_pP
->
ue_context
.
SRB_configList
,
...
@@ -327,17 +316,7 @@ static void apply_macrlc_config(gNB_RRC_INST *rrc, rrc_gNB_ue_context_t *const u
...
@@ -327,17 +316,7 @@ static void apply_macrlc_config(gNB_RRC_INST *rrc, rrc_gNB_ue_context_t *const u
void
apply_macrlc_config_reest
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
,
ue_id_t
ue_id
)
void
apply_macrlc_config_reest
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
,
ue_id_t
ue_id
)
{
{
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
nr_mac_update_cellgroup
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_pP
->
ue_context
.
rnti
,
ue_context_pP
->
ue_context
.
masterCellGroup
);
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_id
,
get_softmodem_params
()
->
sa
?
ue_context_pP
->
ue_context
.
masterCellGroup
:
NULL
);
nr_rrc_rlc_config_asn1_req
(
ctxt_pP
,
nr_rrc_rlc_config_asn1_req
(
ctxt_pP
,
ue_context_pP
->
ue_context
.
SRB_configList
,
ue_context_pP
->
ue_context
.
SRB_configList
,
...
@@ -430,17 +409,15 @@ static void rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(const protoc
...
@@ -430,17 +409,15 @@ static void rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(const protoc
PROTOCOL_NR_RRC_CTXT_UE_FMT
" RRC_gNB --- MAC_CONFIG_REQ (SRB1) ---> MAC_gNB
\n
"
,
PROTOCOL_NR_RRC_CTXT_UE_FMT
" RRC_gNB --- MAC_CONFIG_REQ (SRB1) ---> MAC_gNB
\n
"
,
PROTOCOL_NR_RRC_CTXT_UE_ARGS
(
ctxt_pP
));
PROTOCOL_NR_RRC_CTXT_UE_ARGS
(
ctxt_pP
));
rrc_mac_config_req_gNB
(
rrc_instance_p
->
module_id
,
// update SCC and MIB/SIB (two calls)
rrc_instance_p
->
configuration
.
pdsch_AntennaPorts
,
nr_mac_config_scc
(
RC
.
nrmac
[
rrc_instance_p
->
module_id
],
rrc_instance_p
->
configuration
.
pusch_AntennaPorts
,
rrc_instance_p
->
configuration
.
pdsch_AntennaPorts
,
rrc_instance_p
->
configuration
.
sib1_tda
,
rrc_instance_p
->
configuration
.
pusch_AntennaPorts
,
rrc_instance_p
->
configuration
.
minRXTXTIME
,
rrc_instance_p
->
configuration
.
sib1_tda
,
rrc_instance_p
->
carrier
.
servingcellconfigcommon
,
rrc_instance_p
->
configuration
.
minRXTXTIME
,
&
rrc_instance_p
->
carrier
.
mib
,
rrc_instance_p
->
carrier
.
servingcellconfigcommon
);
rrc_instance_p
->
carrier
.
siblock1
,
nr_mac_config_mib
(
RC
.
nrmac
[
rrc_instance_p
->
module_id
],
&
rrc_instance_p
->
carrier
.
mib
);
0
,
nr_mac_config_sib1
(
RC
.
nrmac
[
rrc_instance_p
->
module_id
],
rrc_instance_p
->
carrier
.
siblock1
);
ue_context_pP
->
ue_context
.
rnti
,
NULL
);
LOG_I
(
NR_RRC
,
LOG_I
(
NR_RRC
,
PROTOCOL_NR_RRC_CTXT_UE_FMT
" [RAPROC] Logical Channel DL-CCCH, Generating RRCSetup (bytes %d)
\n
"
,
PROTOCOL_NR_RRC_CTXT_UE_FMT
" [RAPROC] Logical Channel DL-CCCH, Generating RRCSetup (bytes %d)
\n
"
,
...
@@ -639,17 +616,7 @@ static void rrc_gNB_generate_defaultRRCReconfiguration(const protocol_ctxt_t *co
...
@@ -639,17 +616,7 @@ static void rrc_gNB_generate_defaultRRCReconfiguration(const protocol_ctxt_t *co
if
(
NODE_IS_DU
(
rrc
->
node_type
)
||
NODE_IS_MONOLITHIC
(
rrc
->
node_type
))
{
if
(
NODE_IS_DU
(
rrc
->
node_type
)
||
NODE_IS_MONOLITHIC
(
rrc
->
node_type
))
{
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
nr_mac_update_cellgroup
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_p
->
rnti
,
ue_p
->
masterCellGroup
);
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_p
->
rnti
,
ue_p
->
masterCellGroup
);
uint32_t
delay_ms
=
ue_context_pP
->
ue_context
.
masterCellGroup
&&
uint32_t
delay_ms
=
ue_context_pP
->
ue_context
.
masterCellGroup
&&
ue_context_pP
->
ue_context
.
masterCellGroup
->
spCellConfig
&&
ue_context_pP
->
ue_context
.
masterCellGroup
->
spCellConfig
&&
...
@@ -909,17 +876,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration(
...
@@ -909,17 +876,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration(
PDCP_TRANSMISSION_MODE_CONTROL
);
PDCP_TRANSMISSION_MODE_CONTROL
);
if
(
NODE_IS_DU
(
rrc
->
node_type
)
||
NODE_IS_MONOLITHIC
(
rrc
->
node_type
))
{
if
(
NODE_IS_DU
(
rrc
->
node_type
)
||
NODE_IS_MONOLITHIC
(
rrc
->
node_type
))
{
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
nr_mac_update_cellgroup
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_pP
->
ue_context
.
rnti
,
ue_context_pP
->
ue_context
.
masterCellGroup
);
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_context_pP
->
ue_context
.
rnti
,
ue_context_pP
->
ue_context
.
masterCellGroup
);
uint32_t
delay_ms
=
ue_context_pP
->
ue_context
.
masterCellGroup
&&
uint32_t
delay_ms
=
ue_context_pP
->
ue_context
.
masterCellGroup
&&
ue_context_pP
->
ue_context
.
masterCellGroup
->
spCellConfig
&&
ue_context_pP
->
ue_context
.
masterCellGroup
->
spCellConfig
&&
...
@@ -1726,19 +1683,7 @@ void rrc_gNB_process_RRCReestablishmentComplete(const protocol_ctxt_t *const ctx
...
@@ -1726,19 +1683,7 @@ void rrc_gNB_process_RRCReestablishmentComplete(const protocol_ctxt_t *const ctx
ctxt_pP
->
module_id
,
ctxt_pP
->
module_id
,
DCCH
);
DCCH
);
gNB_RrcConfigurationReq
*
configuration
=
&
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
configuration
;
nr_mac_update_cellgroup
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_pP
->
ue_context
.
rnti
,
cellGroupConfig
);
rrc_mac_config_req_gNB
(
ctxt_pP
->
module_id
,
configuration
->
pdsch_AntennaPorts
,
configuration
->
pusch_AntennaPorts
,
configuration
->
sib1_tda
,
configuration
->
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_context_pP
->
ue_context
.
rnti
,
cellGroupConfig
);
nr_rrc_data_req
(
ctxt_pP
,
DCCH
,
rrc_gNB_mui
++
,
SDU_CONFIRM_NO
,
size
,
buffer
,
PDCP_TRANSMISSION_MODE_CONTROL
);
nr_rrc_data_req
(
ctxt_pP
,
DCCH
,
rrc_gNB_mui
++
,
SDU_CONFIRM_NO
,
size
,
buffer
,
PDCP_TRANSMISSION_MODE_CONTROL
);
}
}
...
@@ -1791,18 +1736,7 @@ int nr_rrc_reconfiguration_req(rrc_gNB_ue_context_t *const ue_context_pP
...
@@ -1791,18 +1736,7 @@ int nr_rrc_reconfiguration_req(rrc_gNB_ue_context_t *const ue_context_pP
NULL
,
NULL
,
masterCellGroup
);
masterCellGroup
);
gNB_RrcConfigurationReq
*
configuration
=
&
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
configuration
;
nr_mac_update_cellgroup
(
RC
.
nrmac
[
ctxt_pP
->
module_id
],
ue_context_pP
->
ue_context
.
rnti
,
masterCellGroup
);
rrc_mac_config_req_gNB
(
ctxt_pP
->
module_id
,
configuration
->
pdsch_AntennaPorts
,
configuration
->
pusch_AntennaPorts
,
configuration
->
sib1_tda
,
configuration
->
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
0
,
ue_context_pP
->
ue_context
.
rnti
,
masterCellGroup
);
nr_rrc_data_req
(
ctxt_pP
,
nr_rrc_data_req
(
ctxt_pP
,
DCCH
,
DCCH
,
...
...
openair2/RRC/NR/rrc_gNB_NGAP.c
View file @
742800b8
...
@@ -821,7 +821,6 @@ rrc_gNB_process_NGAP_DOWNLINK_NAS(
...
@@ -821,7 +821,6 @@ rrc_gNB_process_NGAP_DOWNLINK_NAS(
case
ngran_gNB
:
case
ngran_gNB
:
{
{
// rrc_mac_config_req_gNB
/* Transfer data to PDCP */
/* Transfer data to PDCP */
nr_rrc_data_req
(
nr_rrc_data_req
(
&
ctxt
,
&
ctxt
,
...
...
openair2/RRC/NR/rrc_gNB_nsa.c
View file @
742800b8
...
@@ -348,31 +348,14 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
...
@@ -348,31 +348,14 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
rrc
->
Nb_ue
++
;
rrc
->
Nb_ue
++
;
// configure MAC and RLC
// configure MAC and RLC
if
(
NODE_IS_DU
(
rrc
->
node_type
))
{
bool
ret
=
false
;
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
if
(
get_softmodem_params
()
->
phy_test
)
{
rrc
->
configuration
.
pdsch_AntennaPorts
,
// phytest mode: we don't set up RA, etc
rrc
->
configuration
.
pusch_AntennaPorts
,
ret
=
nr_mac_add_test_ue
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_p
->
ue_id_rnti
,
ue_context_p
->
ue_context
.
secondaryCellGroup
);
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
rrc
->
carrier
.
servingcellconfigcommon
,
&
rrc
->
carrier
.
mib
,
NULL
,
1
,
// add_ue flag
ue_context_p
->
ue_id_rnti
,
ue_context_p
->
ue_context
.
secondaryCellGroup
);
}
else
{
}
else
{
rrc_mac_config_req_gNB
(
rrc
->
module_id
,
ret
=
nr_mac_prepare_ra_nsa_ue
(
RC
.
nrmac
[
rrc
->
module_id
],
ue_context_p
->
ue_id_rnti
,
ue_context_p
->
ue_context
.
secondaryCellGroup
);
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIME
,
NULL
,
NULL
,
NULL
,
1
,
// add_ue flag
ue_context_p
->
ue_id_rnti
,
ue_context_p
->
ue_context
.
secondaryCellGroup
);
}
}
AssertFatal
(
ret
,
"cannot add NSA UE in MAC, aborting
\n
"
);
PROTOCOL_CTXT_SET_BY_MODULE_ID
(
&
ctxt
,
rrc
->
module_id
,
GNB_FLAG_YES
,
ue_context_p
->
ue_id_rnti
,
0
,
0
,
rrc
->
module_id
);
PROTOCOL_CTXT_SET_BY_MODULE_ID
(
&
ctxt
,
rrc
->
module_id
,
GNB_FLAG_YES
,
ue_context_p
->
ue_id_rnti
,
0
,
0
,
rrc
->
module_id
);
if
(
get_softmodem_params
()
->
do_ra
)
ctxt
.
enb_flag
=
0
;
if
(
get_softmodem_params
()
->
do_ra
)
ctxt
.
enb_flag
=
0
;
...
...
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