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:
parent
a2ef802dba
commit
89a995a439
|
@ -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);
|
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) {
|
if (ctx->fi->state == TBF_ST_ASSIGN) {
|
||||||
tbf_assign_control_ts(ctx->tbf);
|
tbf_assign_control_ts(ctx->tbf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue