virtual: Correctly set+report BTS variant in OML attributes

Change-Id: I76dc47427ec26834859fb737bd319dc379ae8697
This commit is contained in:
Harald Welte 2018-03-17 15:10:59 +01:00
parent d8cd756da4
commit 6d0c67684c
3 changed files with 3 additions and 0 deletions

View File

@ -422,6 +422,7 @@ enum gsm_bts_type_variant {
BTS_OSMO_OCTPHY,
BTS_OSMO_SYSMO,
BTS_OSMO_TRX,
BTS_OSMO_VIRTUAL,
_NUM_BTS_VARIANT
};

View File

@ -74,6 +74,7 @@ const struct value_string osmo_bts_variant_names[_NUM_BTS_VARIANT + 1] = {
{ BTS_OSMO_OCTPHY, "osmo-bts-octphy" },
{ BTS_OSMO_SYSMO, "osmo-bts-sysmo" },
{ BTS_OSMO_TRX, "omso-bts-trx" },
{ BTS_OSMO_VIRTUAL, "omso-bts-virtual" },
{ 0, NULL }
};

View File

@ -56,6 +56,7 @@ uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx)
int bts_model_init(struct gsm_bts *bts)
{
bts->variant = BTS_OSMO_VIRTUAL;
bts->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2) | CIPHER_A5(3);
gsm_bts_set_feature(bts, BTS_FEAT_OML_ALERTS);