aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/trx_if.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-07 14:09:06 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:25 +0200
commite0959e7929cf9c8659919f2849c54360eda95032 (patch)
tree6714cf65a35975788f0114b373993d46d0ef8395 /src/osmo-bts-trx/trx_if.c
parent2ea68e2b7be7af78fb87c42e39133a812b709d48 (diff)
TRX: Use received TRX clocks to determine availablility of tranceiver
Only if transceiver becomes available, control commands are sent. If tranceiver is gone, reset scheduler. The current availability state is sent to BSC via OML state change commands.
Diffstat (limited to 'src/osmo-bts-trx/trx_if.c')
-rw-r--r--src/osmo-bts-trx/trx_if.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index e35b7cd4..7d1be857 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -183,6 +183,12 @@ static int trx_ctrl_cmd(struct trx_l1h *l1h, int critical, const char *cmd,
va_list ap;
int l, pending = 0;
+ if (!tranceiver_available) {
+ LOGP(DTRX, LOGL_ERROR, "CTRL ignored: No clock from "
+ "tranceiver, please fix!\n");
+ return -EIO;
+ }
+
if (!llist_empty(&l1h->trx_ctrl_list))
pending = 1;