- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
/*
|
|
* \brief RRC layer top level initialization
|
|
*/
|
|
|
|
#include "defs.h"
|
|
#include "rrc_proto.h"
|
|
#include "common/utils/LOG/log.h"
|
|
#include "executables/softmodem-common.h"
|
|
|
|
void init_nsa_message(NR_UE_RRC_INST_t *rrc, char* reconfig_file, char* rbconfig_file)
|
|
{
|
|
if (get_softmodem_params()->phy_test == 1 || get_softmodem_params()->do_ra == 1) {
|
|
// read in files for RRCReconfiguration and RBconfig
|
|
|
|
LOG_I(NR_RRC, "using %s for rrc init[1/2]\n", reconfig_file);
|
|
FILE *fd = fopen(reconfig_file, "r");
|
|
AssertFatal(fd,
|
|
"cannot read file %s: errno %d, %s\n",
|
|
reconfig_file,
|
|
errno,
|
|
strerror(errno));
|
|
char buffer[1024];
|
|
int msg_len = fread(buffer, 1, 1024, fd);
|
|
fclose(fd);
|
|
process_nsa_message(rrc, nr_SecondaryCellGroupConfig_r15, buffer, msg_len);
|
|
|
|
LOG_I(NR_RRC, "using %s for rrc init[2/2]\n", rbconfig_file);
|
|
fd = fopen(rbconfig_file, "r");
|
|
AssertFatal(fd,
|
|
"cannot read file %s: errno %d, %s\n",
|
|
rbconfig_file,
|
|
errno,
|
|
strerror(errno));
|
|
msg_len = fread(buffer, 1, 1024, fd);
|
|
fclose(fd);
|
|
process_nsa_message(rrc, nr_RadioBearerConfigX_r15, buffer,msg_len);
|
|
MessageDef* ittiMsg = itti_alloc_new_message(TASK_RRC_NRUE, rrc->ue_id, NAS_INIT_NOS1_IF);
|
|
itti_send_msg_to_task(TASK_NAS_NRUE, rrc->ue_id, ittiMsg);
|
|
}
|
|
else
|
|
LOG_D(NR_RRC, "In NSA mode \n");
|
|
}
|