From 2d168bd1d7a4ee6935f296d8f09b9a023f328437 Mon Sep 17 00:00:00 2001 From: Javi Date: Wed, 10 Mar 2021 18:00:25 -0600 Subject: Add command to enable RX diversity to RBS2000 Allow selection of RX diversity from VTY Options are a,ab,b Default is 'a' so there is no change from previous behavior Change-Id: I430762b8cfa51060841d90ba4446de73bd557c6c --- include/osmocom/bsc/abis_om2000.h | 7 +++++++ include/osmocom/bsc/bts_trx.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/osmocom/bsc/abis_om2000.h b/include/osmocom/bsc/abis_om2000.h index 51ec11be5..a61601552 100644 --- a/include/osmocom/bsc/abis_om2000.h +++ b/include/osmocom/bsc/abis_om2000.h @@ -48,6 +48,12 @@ enum om2k_sync_src { OM2K_SYNC_SRC_EXTERNAL = 0x01, }; +enum om2k_rx_diversity { + OM2K_RX_DIVERSITY_B = 0x01, + OM2K_RX_DIVERSITY_A = 0x02, + OM2K_RX_DIVERSITY_AB = 0x03, +}; + /* on-wire format for IS conn group */ struct om2k_is_conn_grp { uint16_t icp1; @@ -151,6 +157,7 @@ int abis_om2k_vty_init(void); struct vty; void abis_om2k_config_write_bts(struct vty *vty, struct gsm_bts *bts); +void abis_om2k_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx); const char *abis_om2k_mo_name(const struct abis_om2k_mo *mo); diff --git a/include/osmocom/bsc/bts_trx.h b/include/osmocom/bsc/bts_trx.h index 85adc9bdd..7c8ef527b 100644 --- a/include/osmocom/bsc/bts_trx.h +++ b/include/osmocom/bsc/bts_trx.h @@ -13,6 +13,7 @@ #include #include "osmocom/bsc/gsm_data.h" +#include "osmocom/bsc/abis_om2000.h" struct gsm_bts; @@ -76,6 +77,7 @@ struct gsm_bts_trx { struct { struct om2k_mo om2k_mo; } tx; + enum om2k_rx_diversity rx_diversity; } rbs2000; }; struct gsm_bts_trx_ts ts[TRX_NR_TS]; -- cgit v1.2.3