fixeria has uploaded this change for review.

View 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(-)

git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/75/28675/1
diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index cdfef8a..bc2557c 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.

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I19579d2a76c38ca972a4ca132a8e5e3bba876c67
Gerrit-Change-Number: 28675
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange