Fixed error in setting Kint in pdcp_entity_lte.

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

@ -72,11 +72,11 @@ private:
srsue::rrc_interface_pdcp* rrc = nullptr; srsue::rrc_interface_pdcp* rrc = nullptr;
srsue::gw_interface_pdcp* gw = nullptr; srsue::gw_interface_pdcp* gw = nullptr;
srslte_pdcp_config_lte_t cfg = {}; srslte_pdcp_config_lte_t cfg = {};
uint8_t sn_len_bytes = 0; uint8_t sn_len_bytes = 0;
uint32_t rx_count = 0; uint32_t rx_count = 0;
uint32_t tx_count = 0; uint32_t tx_count = 0;
uint32_t rx_hfn = 0; uint32_t rx_hfn = 0;
uint32_t next_pdcp_rx_sn = 0; uint32_t next_pdcp_rx_sn = 0;

@ -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