aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-07-08 18:40:31 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-06 14:48:11 +0200
commit69403a9658809582326c02ba65cd5f131b872ea3 (patch)
treee09abbbb486a232df4ba8287e41d2f44df9344cc
parent4a2ccb0bfc8b5e7171f7d3e7b925202f44a1c3d2 (diff)
TRX: Close TRX (shutdown all active channels) on ABIS link failure
-rw-r--r--src/osmo-bts-trx/l1_if.c10
-rw-r--r--src/osmo-bts-trx/main.c3
2 files changed, 10 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c
index 110241d7..0575a429 100644
--- a/src/osmo-bts-trx/l1_if.c
+++ b/src/osmo-bts-trx/l1_if.c
@@ -34,6 +34,7 @@
#include <osmo-bts/l1sap.h>
#include <osmo-bts/bts_model.h>
#include <osmo-bts/amr.h>
+#include <osmo-bts/abis.h>
#include "l1_if.h"
#include "trx_if.h"
@@ -279,6 +280,15 @@ int bts_model_trx_close(struct gsm_bts_trx *trx)
return 0;
}
+/* on RSL failure, deactivate transceiver */
+void bts_model_abis_close(struct gsm_bts *bts)
+{
+ struct gsm_bts_trx *trx;
+
+ llist_for_each_entry(trx, &bts->trx_list, list)
+ bts_model_trx_close(trx);
+}
+
/* set bts attributes */
static uint8_t trx_set_bts(struct gsm_bts *bts, struct tlv_parsed *new_attr)
{
diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c
index dbf7c69a..6ddc27e9 100644
--- a/src/osmo-bts-trx/main.c
+++ b/src/osmo-bts-trx/main.c
@@ -402,6 +402,3 @@ int main(int argc, char **argv)
return 0;
}
-void bts_model_abis_close(struct gsm_bts *bts)
-{
-}