|
|
|
@ -193,7 +193,7 @@ void rrc::add_user(uint16_t rnti)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rnti == SRSLTE_MRNTI) {
|
|
|
|
|
srslte::srslte_pdcp_config_t cfg = {
|
|
|
|
|
srslte::pdcp_config_t cfg = {
|
|
|
|
|
.bearer_id = 1,
|
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
@ -1532,7 +1532,7 @@ 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_t pdcp_cnfg{.bearer_id = 1,
|
|
|
|
|
srslte::pdcp_config_t pdcp_cnfg{.bearer_id = 1,
|
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
@ -1741,7 +1741,7 @@ 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_t pdcp_cnfg_srb = {.bearer_id = 2,
|
|
|
|
|
srslte::pdcp_config_t pdcp_cnfg_srb = {.bearer_id = 2,
|
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_SRB,
|
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
@ -1755,7 +1755,7 @@ void rrc::ue::send_connection_reconf(srslte::unique_byte_buffer_t pdu)
|
|
|
|
|
parent->rlc->add_bearer(rnti, 3, srslte::make_rlc_config_t(conn_reconf->rr_cfg_ded.drb_to_add_mod_list[0].rlc_cfg));
|
|
|
|
|
|
|
|
|
|
// Configure DRB1 in PDCP
|
|
|
|
|
srslte::srslte_pdcp_config_t pdcp_cnfg_drb = {.bearer_id = 1,
|
|
|
|
|
srslte::pdcp_config_t pdcp_cnfg_drb = {.bearer_id = 1,
|
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|
.rx_direction = srslte::SECURITY_DIRECTION_UPLINK,
|
|
|
|
@ -1823,7 +1823,7 @@ 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_t pdcp_config = {
|
|
|
|
|
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
|
|
|
|
|
.rb_type = srslte::PDCP_RB_IS_DRB,
|
|
|
|
|
.tx_direction = srslte::SECURITY_DIRECTION_DOWNLINK,
|
|
|
|
|