tbf_fsm: Add assert verifying X2002 only triggers for DL TBF

Code above setting the timer in same tbf_fsm already has this kind of
assert, but it helps understanding the code having this assert here.

Change-Id: I7588deef5073694eb5fecdb516c241a04594e2b0
This commit is contained in:
Pau Espin 2021-10-18 14:25:17 +02:00
parent a2ef802dba
commit 89a995a439
1 changed files with 3 additions and 0 deletions

View File

@ -352,6 +352,9 @@ static void handle_timeout_X2002(struct tbf_fsm_ctx *ctx)
{
struct gprs_rlcmac_dl_tbf *dl_tbf = as_dl_tbf(ctx->tbf);
/* X2002 is used only for DL TBF */
OSMO_ASSERT(dl_tbf);
if (ctx->fi->state == TBF_ST_ASSIGN) {
tbf_assign_control_ts(ctx->tbf);