From 2686a02f0eee73171063fed6add378b141c8bed2 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 8 Jul 2013 18:40:31 +0200 Subject: TRX: Close TRX (shutdown all active channels) on ABIS link failure --- src/osmo-bts-trx/l1_if.c | 10 ++++++++++ src/osmo-bts-trx/main.c | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src') 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 #include #include +#include #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 04152d34..8f917369 100644 --- a/src/osmo-bts-trx/main.c +++ b/src/osmo-bts-trx/main.c @@ -401,6 +401,3 @@ int main(int argc, char **argv) return 0; } -void bts_model_abis_close(struct gsm_bts *bts) -{ -} -- cgit v1.2.3