remove default PDCP entity for SRB0

This commit is contained in:
Andre Puschmann 2019-06-20 15:23:35 +02:00
parent f5a929e425
commit 218f136254
2 changed files with 0 additions and 25 deletions

View File

@ -93,10 +93,6 @@ private:
pdcp_map_t pdcp_array, pdcp_array_mrb;
pthread_rwlock_t rwlock;
// default PDCP entity that is maintained active by PDCP instance
srslte_pdcp_config_t default_cnfg;
uint32_t default_lcid;
bool valid_lcid(uint32_t lcid);
bool valid_mch_lcid(uint32_t lcid);
};

View File

@ -29,7 +29,6 @@ pdcp::pdcp()
rrc = NULL;
gw = NULL;
pdcp_log = NULL;
default_lcid = 0;
pthread_rwlock_init(&rwlock, NULL);
}
@ -57,27 +56,10 @@ void pdcp::init(srsue::rlc_interface_pdcp *rlc_, srsue::rrc_interface_pdcp *rrc_
rrc = rrc_;
gw = gw_;
pdcp_log = pdcp_log_;
default_lcid = lcid_;
// Default config
default_cnfg.is_control = false;
default_cnfg.is_data = false;
default_cnfg.direction = direction_;
// create default PDCP entity for SRB0
add_bearer(0, default_cnfg);
}
void pdcp::stop()
{
// destroy default entity
pthread_rwlock_wrlock(&rwlock);
if (valid_lcid(0)) {
pdcp_map_t::iterator it = pdcp_array.find(0);
delete(it->second);
pdcp_array.erase(it);
}
pthread_rwlock_unlock(&rwlock);
}
void pdcp::reestablish() {
@ -107,9 +89,6 @@ void pdcp::reset()
pdcp_array.erase(it++);
}
pthread_rwlock_unlock(&rwlock);
// add default SRB0 again
add_bearer(0, default_cnfg);
}
/*******************************************************************************