aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/trx_if.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-06-16 12:36:20 +0200
committerMax <msuraev@sysmocom.de>2016-06-16 12:43:44 +0200
commit7cc3c3156ef23500612724f8a38c3db95c05702b (patch)
treee992b0514dccbb8bd84c9b6913e7e1bec38ded22 /src/osmo-bts-trx/trx_if.c
parent58e4e18206501c3bffa65f0b876bbc5ebe175d6e (diff)
Fix OML activation
Previously software activation could have been reported multiple times which broke proper BTS init. Introduce guard variable to ensure reporting happens only once. Note: this is just minimal workaround - ideally proper OML state machine should be implemented. Change-Id: Ifffbdb756bc5d2864f985c01a3299b839c4de7af Related: OS#1648
Diffstat (limited to 'src/osmo-bts-trx/trx_if.c')
-rw-r--r--src/osmo-bts-trx/trx_if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index a4c16dc3..c448006e 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -518,7 +518,9 @@ int bts_model_phy_link_open(struct phy_link *plink)
if (!pinst->u.osmotrx.hdl)
goto cleanup;
}
-
+ /* FIXME: is there better way to check/report TRX availability? */
+ transceiver_available = 1;
+ phy_link_state_set(plink, PHY_LINK_CONNECTED);
return 0;
cleanup: