|
|
@ -1075,10 +1075,20 @@ bool rrc::con_reconfig(rrc_conn_recfg_s* reconfig)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rrc_conn_recfg_r8_ies_s* reconfig_r8 = &reconfig->crit_exts.c1().rrc_conn_recfg_r8();
|
|
|
|
rrc_conn_recfg_r8_ies_s* reconfig_r8 = &reconfig->crit_exts.c1().rrc_conn_recfg_r8();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If first message after reestablishment, resume SRB2 and all DRB
|
|
|
|
|
|
|
|
if (reestablishment_successful) {
|
|
|
|
|
|
|
|
for (int i = 2; i < SRSLTE_N_RADIO_BEARERS; i++) {
|
|
|
|
|
|
|
|
if (rlc->has_bearer(i)) {
|
|
|
|
|
|
|
|
rlc->resume_bearer(i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// If this is the first con_reconfig after a reestablishment
|
|
|
|
// If this is the first con_reconfig after a reestablishment
|
|
|
|
if (reestablishment_successful) {
|
|
|
|
if (reestablishment_successful) {
|
|
|
|
// Reestablish PDCP and RLC for SRB2 and all DRB
|
|
|
|
// Reestablish PDCP and RLC for SRB2 and all DRB
|
|
|
|
// TODO: Which is the maximum LCID?
|
|
|
|
// TODO: Which is the maximum LCID?
|
|
|
|
|
|
|
|
reestablishment_successful = false;
|
|
|
|
for (int i = 2; i < SRSLTE_N_RADIO_BEARERS; i++) {
|
|
|
|
for (int i = 2; i < SRSLTE_N_RADIO_BEARERS; i++) {
|
|
|
|
if (rlc->has_bearer(i)) {
|
|
|
|
if (rlc->has_bearer(i)) {
|
|
|
|
pdcp->reestablish(i);
|
|
|
|
pdcp->reestablish(i);
|
|
|
@ -1101,16 +1111,6 @@ bool rrc::con_reconfig(rrc_conn_recfg_s* reconfig)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// If first message after reestablishment, resume SRB2 and all DRB
|
|
|
|
|
|
|
|
if (reestablishment_successful) {
|
|
|
|
|
|
|
|
reestablishment_successful = false;
|
|
|
|
|
|
|
|
for (int i = 2; i < SRSLTE_N_RADIO_BEARERS; i++) {
|
|
|
|
|
|
|
|
if (rlc->has_bearer(i)) {
|
|
|
|
|
|
|
|
rlc->resume_bearer(i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
send_rrc_con_reconfig_complete();
|
|
|
|
send_rrc_con_reconfig_complete();
|
|
|
|
|
|
|
|
|
|
|
|
unique_byte_buffer_t nas_sdu;
|
|
|
|
unique_byte_buffer_t nas_sdu;
|
|
|
|