diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-09-30 13:28:54 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2019-10-05 20:50:13 +0000 |
commit | 4b72ee924cd66981d73c524d2fca091b8e5d7503 (patch) | |
tree | f8310938a88c8f6dcc715f4e9f0ff541d9afd91d | |
parent | 520954cd93c7573f0e9b217d8181fa176f8ec1ea (diff) |
bts-trx: trx_set_bts(): Avoid double loop by checking current trx
check_transceiver_availability() is a loop over every trx, same to what
trx_set_bts() does, so let's call the per-trx version directly.
Change-Id: I8843c1438c6af700631aba7b7e72aae0bdb7ec3a
-rw-r--r-- | src/osmo-bts-trx/l1_if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c index cd2a03cf..9de0abc8 100644 --- a/src/osmo-bts-trx/l1_if.c +++ b/src/osmo-bts-trx/l1_if.c @@ -383,9 +383,8 @@ static uint8_t trx_set_bts(struct gsm_bts *bts, struct tlv_parsed *new_attr) l1h->config.bsic_sent = 0; l1if_provision_transceiver_trx(l1h); } + check_transceiver_availability_trx(l1h, transceiver_available); } - check_transceiver_availability(bts, transceiver_available); - return 0; } |