From 0ae129e9f0d8a632c1d02cde0d26697b751a35b2 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Sat, 9 May 2020 22:27:07 +0300 Subject: timeslot_fsm: Allow PDCH_ACT_ACK in BORKEN state. It should be fine if we receive PDCH_ACT_ACK late. We should just go into the PDCH state as normal. Change-Id: If816b681e0b2e76fb7122cf211e15eeee92451ee --- src/osmo-bsc/timeslot_fsm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c index 91b6b54ea..f8adfb6c7 100644 --- a/src/osmo-bsc/timeslot_fsm.c +++ b/src/osmo-bsc/timeslot_fsm.c @@ -668,6 +668,12 @@ static void ts_fsm_borken(struct osmo_fsm_inst *fi, uint32_t event, void *data) return; } + case TS_EV_PDCH_ACT_ACK: + /* Late PDCH activation ACK is not a crime. + * Just go into the PDCH mode as normal. */ + osmo_fsm_inst_state_chg(fi, TS_ST_PDCH, 0, 0); + return; + default: OSMO_ASSERT(false); } @@ -820,9 +826,11 @@ static const struct osmo_fsm_state ts_fsm_states[] = { .in_event_mask = 0 | S(TS_EV_LCHAN_REQUESTED) | S(TS_EV_LCHAN_UNUSED) + | S(TS_EV_PDCH_ACT_ACK) , .out_state_mask = 0 | S(TS_ST_NOT_INITIALIZED) + | S(TS_ST_PDCH) , }, -- cgit v1.2.1