aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/bts.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-08-08 13:50:39 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-09-13 17:37:35 +0200
commitd8b5bf08e8089ad7d8fc1194e5a247cdb261a476 (patch)
tree64636b95fac72d166dfea3b378cb5cb10e9232ed /src/osmo-bsc/bts.c
parentb2c7d0ab32ba31cc401daf53c2170e06574b929d (diff)
Add Osmux support on the Abis-side data plane
Diffstat (limited to 'src/osmo-bsc/bts.c')
-rw-r--r--src/osmo-bsc/bts.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osmo-bsc/bts.c b/src/osmo-bsc/bts.c
index 4976fe660..95e7430b1 100644
--- a/src/osmo-bsc/bts.c
+++ b/src/osmo-bsc/bts.c
@@ -428,6 +428,8 @@ struct gsm_bts *gsm_bts_alloc(struct gsm_network *net, struct gsm_bts_sm *bts_sm
memcpy(&bts->mr_half.bts_mode[0], &amr_hr_ms_bts_mode[0], sizeof(amr_hr_ms_bts_mode));
bts->mr_half.num_modes = ARRAY_SIZE(amr_hr_ms_bts_mode);
+ bts->use_osmux = OSMUX_USAGE_OFF;
+
bts_cbch_init(bts);
bts_etws_init(bts);
@@ -507,6 +509,13 @@ int gsm_bts_check_cfg(struct gsm_bts *bts)
bts_gprs_mode_name(bts->gprs.mode));
return -EINVAL;
}
+ if (bts->use_osmux == OSMUX_USAGE_ONLY &&
+ !osmo_bts_has_feature(&bts->features, BTS_FEAT_OSMUX)) {
+ LOGP(DNM, LOGL_ERROR,
+ "(bts=%u) osmux use set to 'only', but BTS does not support Osmux\n",
+ bts->nr);
+ return -EINVAL;
+ }
}
/* Verify the physical channel mapping */