|
|
|
@ -193,11 +193,14 @@ void rrc::add_user(uint16_t rnti)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rnti == SRSLTE_MRNTI) {
|
|
|
|
|
srslte::srslte_pdcp_config_lte_t cfg;
|
|
|
|
|
cfg.is_control = false;
|
|
|
|
|
cfg.is_data = true;
|
|
|
|
|
cfg.sn_len = 12;
|
|
|
|
|
cfg.direction = SECURITY_DIRECTION_DOWNLINK;
|
|
|
|
|
srslte::srslte_pdcp_config_t cfg = {
|
|
|
|
|
.bearer_id = 1,
|
|
|
|
|
.is_control = false,
|
|
|
|
|
.is_data = true,
|
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12,
|
|
|
|
|
.direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
uint32_t teid_in = 1;
|
|
|
|
|
|
|
|
|
|
for (uint32_t i = 0; i < mcch.msg.c1().mbsfn_area_cfg_r9().pmch_info_list_r9[0].mbms_session_info_list_r9.size();
|
|
|
|
@ -1529,12 +1532,11 @@ void rrc::ue::send_connection_setup(bool is_setup)
|
|
|
|
|
parent->rlc->add_bearer(rnti, 1, srslte::rlc_config_t::srb_config(1));
|
|
|
|
|
|
|
|
|
|
// Configure SRB1 in PDCP
|
|
|
|
|
srslte::srslte_pdcp_config_lte_t pdcp_cnfg;
|
|
|
|
|
pdcp_cnfg.bearer_id = 1;
|
|
|
|
|
pdcp_cnfg.is_control = true;
|
|
|
|
|
pdcp_cnfg.is_data = false;
|
|
|
|
|
pdcp_cnfg.sn_len = 5;
|
|
|
|
|
pdcp_cnfg.direction = SECURITY_DIRECTION_DOWNLINK;
|
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg{.bearer_id = 1,
|
|
|
|
|
.is_control = true,
|
|
|
|
|
.is_data = false,
|
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5,
|
|
|
|
|
.direction = SECURITY_DIRECTION_DOWNLINK};
|
|
|
|
|
parent->pdcp->add_bearer(rnti, 1, pdcp_cnfg);
|
|
|
|
|
|
|
|
|
|
// Configure PHY layer
|
|
|
|
@ -1739,12 +1741,11 @@ void rrc::ue::send_connection_reconf(srslte::unique_byte_buffer_t pdu)
|
|
|
|
|
parent->rlc->add_bearer(rnti, 2, srslte::rlc_config_t::srb_config(2));
|
|
|
|
|
|
|
|
|
|
// Configure SRB2 in PDCP
|
|
|
|
|
srslte::srslte_pdcp_config_lte_t pdcp_cnfg;
|
|
|
|
|
pdcp_cnfg.bearer_id = 2;
|
|
|
|
|
pdcp_cnfg.direction = SECURITY_DIRECTION_DOWNLINK;
|
|
|
|
|
pdcp_cnfg.is_control = true;
|
|
|
|
|
pdcp_cnfg.is_data = false;
|
|
|
|
|
pdcp_cnfg.sn_len = 5;
|
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg = {.bearer_id = 2,
|
|
|
|
|
.direction = SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|
.is_control = true,
|
|
|
|
|
.is_data = false,
|
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_5};
|
|
|
|
|
parent->pdcp->add_bearer(rnti, 2, pdcp_cnfg);
|
|
|
|
|
parent->pdcp->config_security(rnti, 2, k_rrc_enc, k_rrc_int, k_up_enc, cipher_algo, integ_algo);
|
|
|
|
|
parent->pdcp->enable_integrity(rnti, 2);
|
|
|
|
@ -1821,12 +1822,12 @@ void rrc::ue::send_connection_reconf_new_bearer(LIBLTE_S1AP_E_RABTOBESETUPLISTBE
|
|
|
|
|
parent->rlc->add_bearer(rnti, lcid, srslte::make_rlc_config_t(drb_item.rlc_cfg));
|
|
|
|
|
|
|
|
|
|
// Configure DRB in PDCP
|
|
|
|
|
srslte::srslte_pdcp_config_lte_t pdcp_config;
|
|
|
|
|
pdcp_config.bearer_id = drb_item.drb_id - 1; // TODO: Review all ID mapping LCID DRB ERAB EPSBID Mapping
|
|
|
|
|
pdcp_config.is_control = false;
|
|
|
|
|
pdcp_config.is_data = true;
|
|
|
|
|
pdcp_config.sn_len = 12;
|
|
|
|
|
pdcp_config.direction = SECURITY_DIRECTION_DOWNLINK;
|
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_config = {
|
|
|
|
|
.bearer_id = (uint8_t)(drb_item.drb_id - 1), // TODO: Review all ID mapping LCID DRB ERAB EPSBID Mapping
|
|
|
|
|
.is_control = false,
|
|
|
|
|
.is_data = true,
|
|
|
|
|
.sn_len = srslte::PDCP_SN_LEN_12,
|
|
|
|
|
.direction = SECURITY_DIRECTION_DOWNLINK};
|
|
|
|
|
parent->pdcp->add_bearer(rnti, lcid, pdcp_config);
|
|
|
|
|
|
|
|
|
|
// DRB has already been configured in GTPU through bearer setup
|
|
|
|
|