diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2022-12-14 12:43:50 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2022-12-14 12:43:50 +0100 |
commit | c2261bb62e6af61c564e443a2e0b3b62939071f1 (patch) | |
tree | f79eee44c61bd72bf67dbf470e87e837702ed7b1 /include | |
parent | 82d92f703aadf5d4b2ac3c2455cef08c78099018 (diff) |
pcuif_proto: use define constant to specify nax number of trx
The array of trx in gsm_pcu_if_info_ind can hold trx 8 items. Lets use a
define constant to specify the size of that array.
Change-Id: I5fdd5b9e59865fabd0340650ecb347d52208ebe9
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/pcuif_proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmo-bts/pcuif_proto.h b/include/osmo-bts/pcuif_proto.h index a5f03e3e..0fece48a 100644 --- a/include/osmo-bts/pcuif_proto.h +++ b/include/osmo-bts/pcuif_proto.h @@ -59,6 +59,7 @@ #define PCU_IF_ADDR_TYPE_IPV6 0x29 /* IPv6 address */ #define PCU_IF_NUM_NSVC 2 +#define PCU_IF_NUM_TRX 8 enum gsm_pcu_if_text_type { PCU_VERSION, @@ -142,7 +143,7 @@ struct gsm_pcu_if_info_trx { struct gsm_pcu_if_info_ind { uint32_t version; uint32_t flags; - struct gsm_pcu_if_info_trx trx[8]; /* TRX infos per BTS */ + struct gsm_pcu_if_info_trx trx[PCU_IF_NUM_TRX]; /* TRX infos per BTS */ uint8_t bsic; /* RAI */ uint16_t mcc, mnc; |