Fixed error in setting Kint in pdcp_entity_lte.

master
Pedro Alvarez 6 years ago committed by Andre Puschmann
parent 1944bf9a80
commit 2449f901f0

@ -35,12 +35,13 @@ void pdcp_entity_base::config_security(uint8_t* k_rrc_enc_,
CIPHERING_ALGORITHM_ID_ENUM cipher_algo_, CIPHERING_ALGORITHM_ID_ENUM cipher_algo_,
INTEGRITY_ALGORITHM_ID_ENUM integ_algo_) INTEGRITY_ALGORITHM_ID_ENUM integ_algo_)
{ {
// TODO add mutex // TODO add mutex
for (int i = 0; i < 32; i++) { for (int i = 0; i < 32; i++) {
k_rrc_enc[i] = k_rrc_enc_[i]; k_rrc_enc[i] = k_rrc_enc_[i];
k_rrc_int[i] = k_rrc_int_[i]; k_rrc_int[i] = k_rrc_int_[i];
k_up_enc[i] = k_up_enc_[i]; k_up_enc[i] = k_up_enc_[i];
if (k_up_int != nullptr) { if (k_up_int_ != nullptr) {
k_up_int[i] = k_up_int_[i]; k_up_int[i] = k_up_int_[i];
} }
} }

@ -52,6 +52,8 @@ void pdcp_entity_lte::init(srsue::rlc_interface_pdcp* rlc_,
// set length of SN field in bytes // set length of SN field in bytes
sn_len_bytes = (cfg.sn_len == 5) ? 1 : 2; sn_len_bytes = (cfg.sn_len == 5) ? 1 : 2;
rb_is_control = cfg.is_control;
if (cfg.is_control) { if (cfg.is_control) {
reordering_window = 0; reordering_window = 0;
} else if (cfg.is_data) { } else if (cfg.is_data) {

Loading…
Cancel
Save