Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27924 )
Change subject: model_init: order features alphabetically, part 2
......................................................................
Patch Set 1: Code-Review+1
--
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: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 25 Apr 2022 11:01:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27923 )
Change subject: osmobts: list all features of latest osmobts
......................................................................
Patch Set 1:
(1 comment)
File src/osmo-bsc/bts_osmobts.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27923/comment/d53ad486_8c61ff1d
PS1, Line 213: osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_ABIS_OSMO_PCU);
So in here you are actually putting up to date the expected set of features an up-to-date osmo-bts should report?
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27923
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I7fca42a39a4bc98a6ea8b9cfab28c4bad3a6a0aa
Gerrit-Change-Number: 27923
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 25 Apr 2022 11:01:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27921 )
Change subject: Always use reported features if available
......................................................................
Patch Set 1:
(1 comment)
File src/osmo-bsc/bts.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27921/comment/f64fe597_8c77c9ed
PS1, Line 693: !osmo_bts_has_feature(&bts->features, BTS_FEAT_GPRS)) {
note: model->features field can probably be turned const in the struct definition?
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27921
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Idf2d933aa8b03b1f708e56a08707fe6c620a97aa
Gerrit-Change-Number: 27921
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 25 Apr 2022 10:58:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27919 )
Change subject: abis_nm: don't compare assumed/reported features
......................................................................
Patch Set 1:
(1 comment)
File src/osmo-bsc/abis_nm.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27919/comment/c73fa4ff_aa5060e9
PS1, Line 603: if (i >= _NUM_BTS_FEAT) {
I'd rather put this check before the osmo_bts_has_feature() one, because otherwise you'll probably never print the LOGPMO below for "unknwon features", since it will actually most probably be osmo_bts_has_feature(&bts->features, i) == false.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27919
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ibd79bc7ef802d8e95e05d746df182ff974b78e29
Gerrit-Change-Number: 27919
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 25 Apr 2022 10:54:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27923 )
Change subject: osmobts: list all features of latest osmobts
......................................................................
osmobts: list all features of latest osmobts
List all features available in OsmoBTS, at least with one backend and
explain in a comment that this list is used until the BTS reports the
actual feature list.
Related: SYS#5922, OS#5538
Change-Id: I7fca42a39a4bc98a6ea8b9cfab28c4bad3a6a0aa
---
M src/osmo-bsc/bts_ipaccess_nanobts.c
M src/osmo-bsc/bts_osmobts.c
2 files changed, 23 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/23/27923/1
diff --git a/src/osmo-bsc/bts_ipaccess_nanobts.c b/src/osmo-bsc/bts_ipaccess_nanobts.c
index 1df6537..fde15a2 100644
--- a/src/osmo-bsc/bts_ipaccess_nanobts.c
+++ b/src/osmo-bsc/bts_ipaccess_nanobts.c
@@ -499,6 +499,8 @@
bts_model_nanobts.features.data_len =
sizeof(bts_model_nanobts._features_data);
+ /* List of features to be used e.g. during VTY config parsing until the
+ * actual feature set has been reported. */
osmo_bts_set_feature(&bts_model_nanobts.features, BTS_FEAT_GPRS);
osmo_bts_set_feature(&bts_model_nanobts.features, BTS_FEAT_EGPRS);
osmo_bts_set_feature(&bts_model_nanobts.features, BTS_FEAT_MULTI_TSC);
diff --git a/src/osmo-bsc/bts_osmobts.c b/src/osmo-bsc/bts_osmobts.c
index ca5ddb2..8cbdc3e 100644
--- a/src/osmo-bsc/bts_osmobts.c
+++ b/src/osmo-bsc/bts_osmobts.c
@@ -206,12 +206,32 @@
memset(model_osmobts.features.data, 0, model_osmobts.features.data_len);
/* Order alphabetically and remember to adjust bts_init/bts_model_init
- * in OsmoBTS to report new features. */
+ * in OsmoBTS to report new features. Below should be all features that
+ * the newest version of OsmoBTS supports, this will be used e.g.
+ * during VTY config parsing until the actual feature set has been
+ * reported. */
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_ABIS_OSMO_PCU);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_ACCH_REP);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_ACCH_TEMP_OVP);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_AGCH_PCH_PROP);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_BCCH_POWER_RED);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_CBCH);
osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_CCN);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_DYN_TS_SDCCH8);
osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_EGPRS);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_ETWS_PN);
osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_GPRS);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_HOPPING);
osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_IPV6_NSVC);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_MULTI_TSC);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_OML_ALERTS);
osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_PAGING_COORDINATION);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_SPEECH_F_AMR);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_SPEECH_F_EFR);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_SPEECH_F_V1);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_SPEECH_H_AMR);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_SPEECH_H_V1);
+ osmo_bts_set_feature(&model_osmobts.features, BTS_FEAT_VAMOS);
model_osmobts.nm_att_tlvdef.def[NM_ATT_OSMO_NS_LINK_CFG].type = TLV_TYPE_TL16V;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27923
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I7fca42a39a4bc98a6ea8b9cfab28c4bad3a6a0aa
Gerrit-Change-Number: 27923
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange