fixeria submitted this change.
trxcon: trx_if_open(): allocate trx->fi as a child of trxcon->fi
Change-Id: I19579d2a76c38ca972a4ca132a8e5e3bba876c67
---
M src/host/trxcon/src/trx_if.c
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index 40247ef..dc0c0dc 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -710,9 +710,7 @@
}
/* Allocate a new dedicated state machine */
- /* TODO: allocate it as a child of trxcon->fi */
- trx->fi = osmo_fsm_inst_alloc(&trx_fsm, trx,
- NULL, LOGL_DEBUG, "trx_interface");
+ trx->fi = osmo_fsm_inst_alloc_child(&trx_fsm, trxcon->fi, TRX_EVENT_OFFLINE);
if (trx->fi == NULL) {
LOGP(DTRX, LOGL_ERROR, "Failed to allocate an instance "
"of FSM '%s'\n", trx_fsm.name);
To view, visit change 28675. To unsubscribe, or for help writing mail filters, visit settings.