osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-bts/+/27924 )
Change subject: model_init: order features alphabetically, part 2
......................................................................
model_init: order features alphabetically, part 2
Order the ones I've overlooked as well.
Related: SYS#5922, OS#5538
Change-Id: I0aa344de9ea4849de0fcd7b44bfaa70274af594b
---
M src/common/bts.c
M src/osmo-bts-octphy/l1_if.c
M src/osmo-bts-omldummy/bts_model.c
3 files changed, 9 insertions(+), 6 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/src/common/bts.c b/src/common/bts.c
index 0608df1..610b072 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -379,11 +379,12 @@
tall_rtp_ctx = talloc_pool(tall_bts_ctx, 262144);
osmo_rtp_init(tall_rtp_ctx);
- /* features implemented in 'common', available for all models */
- osmo_bts_set_feature(bts->features, BTS_FEAT_ETWS_PN);
- osmo_bts_set_feature(bts->features, BTS_FEAT_IPV6_NSVC);
+ /* features implemented in 'common', available for all models,
+ * order alphabetically */
osmo_bts_set_feature(bts->features, BTS_FEAT_ABIS_OSMO_PCU);
osmo_bts_set_feature(bts->features, BTS_FEAT_DYN_TS_SDCCH8);
+ osmo_bts_set_feature(bts->features, BTS_FEAT_ETWS_PN);
+ osmo_bts_set_feature(bts->features, BTS_FEAT_IPV6_NSVC);
rc = bts_model_init(bts);
if (rc < 0) {
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c
index ebd960e..110f8a3 100644
--- a/src/osmo-bts-octphy/l1_if.c
+++ b/src/osmo-bts-octphy/l1_if.c
@@ -773,11 +773,12 @@
/* FIXME: what is the nominal transmit power of the PHY/board? */
bts->c0->nominal_power = 15;
- osmo_bts_set_feature(bts->features, BTS_FEAT_GPRS);
- osmo_bts_set_feature(bts->features, BTS_FEAT_OML_ALERTS);
+ /* order alphabetically */
#if
defined(cOCTVC1_GSM_LOGICAL_CHANNEL_COMBINATION_ENUM_FCCH_SCH_BCCH_CCCH_SDCCH4_CBCH_SACCHC4)
&& defined(cOCTVC1_GSM_LOGICAL_CHANNEL_COMBINATION_ENUM_SDCCH8_CBCH_SACCHC8)
osmo_bts_set_feature(bts->features, BTS_FEAT_CBCH);
#endif
+ osmo_bts_set_feature(bts->features, BTS_FEAT_GPRS);
+ osmo_bts_set_feature(bts->features, BTS_FEAT_OML_ALERTS);
osmo_bts_set_feature(bts->features, BTS_FEAT_SPEECH_F_V1);
osmo_bts_set_feature(bts->features, BTS_FEAT_SPEECH_H_V1);
diff --git a/src/osmo-bts-omldummy/bts_model.c b/src/osmo-bts-omldummy/bts_model.c
index f5d59a3..46fa84b 100644
--- a/src/osmo-bts-omldummy/bts_model.c
+++ b/src/osmo-bts-omldummy/bts_model.c
@@ -203,9 +203,10 @@
int bts_model_init(struct gsm_bts *bts)
{
bts->variant = BTS_OSMO_OMLDUMMY;
+ /* order alphabetically */
+ osmo_bts_set_feature(bts->features, BTS_FEAT_BCCH_POWER_RED);
osmo_bts_set_feature(bts->features, BTS_FEAT_CBCH);
osmo_bts_set_feature(bts->features, BTS_FEAT_HOPPING);
- osmo_bts_set_feature(bts->features, BTS_FEAT_BCCH_POWER_RED);
return 0;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bts/+/27924
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I0aa344de9ea4849de0fcd7b44bfaa70274af594b
Gerrit-Change-Number: 27924
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged