ipaccess nm: Delay marking TS as usable until OML reports Enabled state
The BTS can immediatelly ACK the OPSTART, but that doesn't mean the TS is already usable. It should only be used when the BTS reports it is in Enabled state. Related: OS#5973 Change-Id: I712aa22252d29ceea152c25a5da75542e1691faf
This commit is contained in:
parent
143dc67c99
commit
90b83f9195
|
@ -254,7 +254,6 @@ static void nm_rx_opstart_ack_chan(struct msgb *oml_msg)
|
|||
return;
|
||||
}
|
||||
osmo_fsm_inst_dispatch(ts->mo.fi, NM_EV_OPSTART_ACK, NULL);
|
||||
osmo_fsm_inst_dispatch(ts->fi, TS_EV_OML_READY, NULL);
|
||||
}
|
||||
|
||||
static void nm_rx_opstart_ack(struct msgb *oml_msg)
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <osmocom/bsc/ipaccess.h>
|
||||
#include <osmocom/bsc/nm_common_fsm.h>
|
||||
#include <osmocom/bsc/debug.h>
|
||||
#include <osmocom/bsc/timeslot_fsm.h>
|
||||
|
||||
#define X(s) (1 << (s))
|
||||
|
||||
|
@ -239,6 +240,8 @@ static void st_op_enabled_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_state
|
|||
ts->mo.adm_unlock_sent = false;
|
||||
ts->mo.set_attr_ack_received = false;
|
||||
ts->mo.set_attr_sent = false;
|
||||
|
||||
osmo_fsm_inst_dispatch(ts->fi, TS_EV_OML_READY, NULL);
|
||||
}
|
||||
|
||||
static void st_op_enabled(struct osmo_fsm_inst *fi, uint32_t event, void *data)
|
||||
|
|
Loading…
Reference in New Issue