Skip to content

Commit 35688dc

Browse files
FabianEckermanncodebot
authored andcommitted
cu_cp,rrc: Reject reestablishment after failed reconfiguration
1 parent 1b787f6 commit 35688dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/rrc/ue/procedures/rrc_reestablishment_procedure.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ bool rrc_reestablishment_procedure::get_and_verify_reestablishment_context()
171171

172172
bool rrc_reestablishment_procedure::is_reestablishment_rejected()
173173
{
174-
return context.cfg.force_reestablishment_fallback or !get_and_verify_reestablishment_context();
174+
return context.cfg.force_reestablishment_fallback or /* reject because of configuration */
175+
reestablishment_request.rrc_reest_request.reest_cause.value ==
176+
asn1::rrc_nr::reest_cause_opts::recfg_fail or /* reject because we can't recover if a reconfiguration
177+
failed */
178+
!get_and_verify_reestablishment_context(); /* reject when reestablishment context is missing or verification
179+
fails */
175180
}
176181

177182
bool rrc_reestablishment_procedure::verify_security_context()

0 commit comments

Comments
 (0)