diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-18 14:25:17 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-18 15:36:58 +0200 |
commit | 89a995a439aa994ac747463f5f204fcd1bd051f7 (patch) | |
tree | 66f9d43129efb2b72bed5d0a40c18ad03c5921d6 | |
parent | a2ef802dbab6cf233978a9b6a1cbc9b381573739 (diff) |
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
-rw-r--r-- | src/tbf_fsm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tbf_fsm.c b/src/tbf_fsm.c index fb947b25..af2b34ef 100644 --- a/src/tbf_fsm.c +++ b/src/tbf_fsm.c @@ -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); |