aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-01-26 14:26:54 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-22 07:58:25 +0000
commite0bfd675d1356a349df9674f78723ff33ed6b634 (patch)
treedcca32334e1b7380b69a3faa8c7a4ddea9feeeae
parent4847a1688ba6fee8e5b44c25317c2e221b4b0ae0 (diff)
gsm_data_shared: extend bts feature list with speech codecs
The feature list does not cover any speech codec related information. - Add speech codec related items to feature list. Change-Id: If6d50c6f4e2348b23f31c3415b0f5577a3f5be50
-rw-r--r--include/osmo-bts/gsm_data_shared.h8
-rw-r--r--src/common/gsm_data_shared.c5
2 files changed, 12 insertions, 1 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index 6c1383fc..1571929e 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -525,7 +525,8 @@ struct gsm_bts_model {
};
/* N. B: always add new features to the end of the list (right before _NUM_BTS_FEAT) to avoid breaking compatibility
- with BTS compiled against earlier version of this header */
+ with BTS compiled against earlier version of this header. Also make sure that the description strings
+ gsm_bts_features_descs[] in gsm_data_shared.c are also updated accordingly! */
enum gsm_bts_features {
BTS_FEAT_HSCSD,
BTS_FEAT_GPRS,
@@ -536,6 +537,11 @@ enum gsm_bts_features {
BTS_FEAT_OML_ALERTS,
BTS_FEAT_AGCH_PCH_PROP,
BTS_FEAT_CBCH,
+ BTS_FEAT_SPEECH_F_V1,
+ BTS_FEAT_SPEECH_H_V1,
+ BTS_FEAT_SPEECH_F_EFR,
+ BTS_FEAT_SPEECH_F_AMR,
+ BTS_FEAT_SPEECH_H_AMR,
_NUM_BTS_FEAT
};
diff --git a/src/common/gsm_data_shared.c b/src/common/gsm_data_shared.c
index 1ef223ca..e5a5ee64 100644
--- a/src/common/gsm_data_shared.c
+++ b/src/common/gsm_data_shared.c
@@ -117,6 +117,11 @@ const struct value_string gsm_bts_features_descs[] = {
{ BTS_FEAT_OML_ALERTS, "OML Alerts" },
{ BTS_FEAT_AGCH_PCH_PROP, "AGCH/PCH proportional allocation" },
{ BTS_FEAT_CBCH, "CBCH" },
+ { BTS_FEAT_SPEECH_F_V1, "Fullrate speech V1" },
+ { BTS_FEAT_SPEECH_H_V1, "Halfrate speech V1" },
+ { BTS_FEAT_SPEECH_F_EFR, "Fullrate speech EFR" },
+ { BTS_FEAT_SPEECH_F_AMR, "Fullrate speech AMR" },
+ { BTS_FEAT_SPEECH_H_AMR, "Halfrate speech AMR" },
{ 0, NULL }
};