mirror of https://github.com/PentHertz/srsLTE.git
Fixed error in setting Kint in pdcp_entity_lte.
This commit is contained in:
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_,
|
||||
INTEGRITY_ALGORITHM_ID_ENUM integ_algo_)
|
||||
{
|
||||
|
||||
// TODO add mutex
|
||||
for (int i = 0; i < 32; i++) {
|
||||
k_rrc_enc[i] = k_rrc_enc_[i];
|
||||
k_rrc_int[i] = k_rrc_int_[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];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,8 @@ void pdcp_entity_lte::init(srsue::rlc_interface_pdcp* rlc_,
|
|||
// set length of SN field in bytes
|
||||
sn_len_bytes = (cfg.sn_len == 5) ? 1 : 2;
|
||||
|
||||
rb_is_control = cfg.is_control;
|
||||
|
||||
if (cfg.is_control) {
|
||||
reordering_window = 0;
|
||||
} else if (cfg.is_data) {
|
||||
|
|
Loading…
Reference in New Issue