aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-04-10 14:25:52 +0000
committerNeels Hofmeyr <neels@hofmeyr.de>2021-04-10 14:25:52 +0000
commit1ecc0d43a378b0a2b0836aecdcd7dc5b52206964 (patch)
tree75d82eac46877092f152e1591c6129670557e9c9
parentbcabd936f3c6edd8a91da4493d1a1ff538b81c5d (diff)
osmo-bts-omldummy: create shadow TRXes iff VAMOS is enabled
-rw-r--r--src/osmo-bts-omldummy/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osmo-bts-omldummy/main.c b/src/osmo-bts-omldummy/main.c
index 3f10987b..92175a14 100644
--- a/src/osmo-bts-omldummy/main.c
+++ b/src/osmo-bts-omldummy/main.c
@@ -135,6 +135,22 @@ int main(int argc, char **argv)
set_bts_features(bts->features, cmdline.features);
+ /* VAMOS: set up shadow TRXes */
+ if (osmo_bts_has_feature(bts->features, BTS_FEAT_VAMOS)) {
+ llist_for_each_entry(trx, &bts->trx_list, list) {
+ /* Does this TRX already have a shadow TRX set up? */
+ if (trx->vamos.shadow_trx)
+ continue;
+ /* Is this TRX itself a shadow TRX? */
+ if (trx->vamos.primary_trx)
+ continue;
+
+ /* This is a primary TRX that should have a shadow TRX, and the shadow TRX still needs to be set
+ * up. */
+ gsm_bts_trx_alloc(bts, trx);
+ }
+ }
+
//btsb = bts_role_bts(bts);
abis_init(bts);