aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJavi <javi@tic-ac.org>2021-03-10 18:00:25 -0600
committerkeith <keith@rhizomatica.org>2021-03-15 18:50:32 +0000
commit2d168bd1d7a4ee6935f296d8f09b9a023f328437 (patch)
treea59ce74d1dc543d4976357efb3cea7ca67ac74d3 /include
parent0a3913ee712bbd9725485ca33b77dfc1c2762858 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/abis_om2000.h7
-rw-r--r--include/osmocom/bsc/bts_trx.h2
2 files changed, 9 insertions, 0 deletions
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 <osmocom/abis/e1_input.h>
#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];