mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu.git
synced 2025-11-03 05:33:31 +00:00
tbf_ul_fm: Allow receiving event TBF_EV_MAX_N3105 in state RELEASING
Change-Id: I8560293d7b0f3bfefc1641208196404bc4848bfd
This commit is contained in:
@@ -279,7 +279,15 @@ static void st_releasing_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_state)
|
|||||||
|
|
||||||
static void st_releasing(struct osmo_fsm_inst *fi, uint32_t event, void *data)
|
static void st_releasing(struct osmo_fsm_inst *fi, uint32_t event, void *data)
|
||||||
{
|
{
|
||||||
OSMO_ASSERT(0);
|
switch (event) {
|
||||||
|
case TBF_EV_MAX_N3105:
|
||||||
|
/* This may be received here if the TBF had several polls
|
||||||
|
* allocated concurrently and several failed each increasing N3105
|
||||||
|
* over MAX_N3015. We are already releasing, ignore.*/
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
OSMO_ASSERT(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tbf_ul_fsm_timer_cb(struct osmo_fsm_inst *fi)
|
static int tbf_ul_fsm_timer_cb(struct osmo_fsm_inst *fi)
|
||||||
@@ -351,7 +359,8 @@ static struct osmo_fsm_state tbf_ul_fsm_states[] = {
|
|||||||
.action = st_finished,
|
.action = st_finished,
|
||||||
},
|
},
|
||||||
[TBF_ST_RELEASING] = {
|
[TBF_ST_RELEASING] = {
|
||||||
.in_event_mask = 0,
|
.in_event_mask =
|
||||||
|
X(TBF_EV_MAX_N3105),
|
||||||
.out_state_mask =
|
.out_state_mask =
|
||||||
0,
|
0,
|
||||||
.name = "RELEASING",
|
.name = "RELEASING",
|
||||||
|
|||||||
Reference in New Issue
Block a user