diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-02-21 16:58:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-22 07:58:26 +0000 |
commit | a4bca115557feb0268e6cfda30238ded16328ae6 (patch) | |
tree | 48fa63300f099eab9ce11263558de5ecef876165 /src/osmo-bts-trx/main.c | |
parent | b93748a1707fa4e20c3a8c3a241dd9e3fb03ea87 (diff) |
bts: use feature list instead of speech codec table
osmo-bts has a table of pchan/channel mode combinations for every
bts. This table models the codec capabilitys of the BTS hardware.
However, having the speech codec apabilities modeled inside the
BTS feature list would be much more comfortable and since the
feature list is communicated back to the BSC we would get the
codec capabilities inside the BSC domain as well.
- remove the pchan/channel mode tables
- set speech codec variants for each BTS type
- fix bts_supports_cm so that it queries the feature list
Change-Id: I977dc729ba856631245aedf76afd48eac92166f7
Diffstat (limited to 'src/osmo-bts-trx/main.c')
-rw-r--r-- | src/osmo-bts-trx/main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c index 38bb881c..5a5c97ec 100644 --- a/src/osmo-bts-trx/main.c +++ b/src/osmo-bts-trx/main.c @@ -59,17 +59,6 @@ #include "l1_if.h" #include "trx_if.h" -/* Table with channel rate / and codec configuration that are supported - * by the hardware bts_supports_cm() */ -static const struct bts_cm bts_model_supported_cm[] = { - { GSM_PCHAN_TCH_F, GSM48_CMODE_SPEECH_V1}, - { GSM_PCHAN_TCH_H, GSM48_CMODE_SPEECH_V1}, - { GSM_PCHAN_TCH_F, GSM48_CMODE_SPEECH_EFR}, - { GSM_PCHAN_TCH_F, GSM48_CMODE_SPEECH_AMR}, - { GSM_PCHAN_TCH_H, GSM48_CMODE_SPEECH_AMR}, - { _GSM_PCHAN_MAX, 0 } -}; - /* dummy, since no direct dsp support */ uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx) { @@ -112,7 +101,6 @@ int bts_model_init(struct gsm_bts *bts) bts->variant = BTS_OSMO_TRX; btsb->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2); - btsb->support.cm = bts_model_supported_cm; /* FIXME: this needs to be overridden with the real hardrware * value */ |