diff options
author | Max <msuraev@sysmocom.de> | 2017-05-08 14:26:29 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-05-10 07:50:00 +0000 |
commit | 8913b29be206ed3ade7376128649918f8c23f88b (patch) | |
tree | 39c1da88f05407c716236716294786e792dbc4f0 /src | |
parent | 028820510e53d3c2c7e7547155f349605bd6e5ab (diff) |
Set BTS variant while initializing BTS model
This will allow proper BTS attribute reporting via OML in follow-up
patches.
Change-Id: I1c49d6c39fb4dac7a46ee25ceacf4c6ef0f0b736
Related: OS#1614
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bts-litecell15/main.c | 1 | ||||
-rw-r--r-- | src/osmo-bts-octphy/l1_if.c | 1 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 1 | ||||
-rw-r--r-- | src/osmo-bts-trx/main.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-litecell15/main.c b/src/osmo-bts-litecell15/main.c index 352949b4..ab139811 100644 --- a/src/osmo-bts-litecell15/main.c +++ b/src/osmo-bts-litecell15/main.c @@ -70,6 +70,7 @@ int bts_model_init(struct gsm_bts *bts) static struct osmo_fd accept_fd, read_fd; int rc; + bts->variant = BTS_OSMO_LITECELL15; btsb = bts_role_bts(bts); btsb->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2) | CIPHER_A5(3); diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c index b42fb3a7..a4d0e3ad 100644 --- a/src/osmo-bts-octphy/l1_if.c +++ b/src/osmo-bts-octphy/l1_if.c @@ -769,6 +769,7 @@ int bts_model_init(struct gsm_bts *bts) LOGP(DL1C, LOGL_NOTICE, "model_init()\n"); + bts->variant = BTS_OSMO_OCTPHY; btsb = bts_role_bts(bts); btsb->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2) | CIPHER_A5(3); diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index b1263b9a..547d084a 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -62,6 +62,7 @@ int bts_model_init(struct gsm_bts *bts) static struct osmo_fd accept_fd, read_fd; int rc; + bts->variant = BTS_OSMO_SYSMO; btsb = bts_role_bts(bts); btsb->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2) | CIPHER_A5(3); diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c index 98066cab..0148e5bb 100644 --- a/src/osmo-bts-trx/main.c +++ b/src/osmo-bts-trx/main.c @@ -99,6 +99,7 @@ int bts_model_init(struct gsm_bts *bts) { struct gsm_bts_role_bts *btsb = bts_role_bts(bts); + bts->variant = BTS_OSMO_TRX; btsb->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2); /* FIXME: this needs to be overridden with the real hardrware |