From 5b22fb7953c39edaaf672384a48bee33970f49f6 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Wed, 14 Feb 2018 19:46:33 +0100 Subject: Make osmo-pcu wait for BTS to become available at start-up time. After the PCU socket becomes available, the BTS might send an INFO_IND message with the 'ACTIVE' flag cleared. If this happens, do not exit immediately, but keep retrying until an INFO_IND message with the 'ACTIVE' flag arrives. Note that this change only affects behaviour at process start-up time. If the BTS switches from active to inactive state then osmo-pcu will still exit. If this behaviour should be changed as well it could be done in a follow-up patch. Tested against osom-bsc + osmo-bts-virtual. Change-Id: Ic42a5601a43b81d260721fef5d9fa52447f9d309 Related: OS#2689 --- src/bts.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bts.h') diff --git a/src/bts.h b/src/bts.h index 5679b988..f9f385b7 100644 --- a/src/bts.h +++ b/src/bts.h @@ -173,6 +173,7 @@ void bts_update_tbf_ta(const char *p, uint32_t fn, uint8_t trx_no, uint8_t ts, i * we can start to compile pcu_vty.c with c++ and remove the split. */ struct gprs_rlcmac_bts { + bool active; uint8_t bsic; uint8_t fc_interval; uint16_t fc_bucket_time; -- cgit v1.2.3