Commit 581e8095 authored by matzakos's avatar matzakos

Avoid calling RB preconfiguration with static rnti for the not required cases

parent 783a11de
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
#include "RRC/NR/MESSAGES/asn1_msg.h" #include "RRC/NR/MESSAGES/asn1_msg.h"
#include "openair2/LAYER2/nr_pdcp/nr_pdcp.h" #include "openair2/LAYER2/nr_pdcp/nr_pdcp.h"
#include "executables/softmodem-common.h"
extern uint16_t sf_ahead; extern uint16_t sf_ahead;
int macrlc_has_f1 = 0; int macrlc_has_f1 = 0;
...@@ -1796,6 +1797,10 @@ void nr_read_config_and_init(void) { ...@@ -1796,6 +1797,10 @@ void nr_read_config_and_init(void) {
RCconfig_NRRRC(msg_p,gnb_id, RC.nrrrc[gnb_id]); RCconfig_NRRRC(msg_p,gnb_id, RC.nrrrc[gnb_id]);
} }
if((IS_SOFTMODEM_NOS1 && !get_softmodem_params()->do_ra) || NODE_IS_DU(RC.nrrrc[0]->node_type)){
nr_DRB_preconfiguration(0x1234);
}
if (NODE_IS_CU(RC.nrrrc[0]->node_type)) { if (NODE_IS_CU(RC.nrrrc[0]->node_type)) {
pdcp_layer_init(); pdcp_layer_init();
nr_DRB_preconfiguration(0x1234); nr_DRB_preconfiguration(0x1234);
......
...@@ -96,9 +96,6 @@ void mac_top_init_gNB(void) ...@@ -96,9 +96,6 @@ void mac_top_init_gNB(void)
// These should be out of here later // These should be out of here later
pdcp_layer_init(); pdcp_layer_init();
// if(IS_SOFTMODEM_NOS1 && !get_softmodem_params()->do_ra)
nr_DRB_preconfiguration(0x1234);
rrc_init_nr_global_param(); rrc_init_nr_global_param();
}else { }else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment