aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-07-25 19:13:35 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-07-30 20:32:20 +0700
commit007e72d5bcc5cf2bc25cd667f12a5c6605d199b6 (patch)
tree5f43e5cd8d1b647eb503f1e6d3a962e367e1b348 /src
parentca418643b387bda2b7529445851900a3779573c8 (diff)
osmo-bts-trx: bts_supports_cm_data(): allow non-transparent modes
The rate adaptation algorithm is the same for both transparent and non-transparent channel modes. The only difference is that the E-bits in the modified CSD frames carry data, like the D-bits. Change-Id: Ib0d9346d7a8e30b8a8e4b08ee04846ba7d12b3fb Related: OS#1572
Diffstat (limited to 'src')
-rw-r--r--src/common/bts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index 1f0040c4..40fe354a 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -875,11 +875,14 @@ static bool bts_supports_cm_data(const struct gsm_bts *bts,
switch (bts->variant) {
case BTS_OSMO_TRX:
switch (cm->chan_rate) {
+ /* TODO: RSL_CMOD_CSD_NT_14k5 */
/* TODO: RSL_CMOD_CSD_T_14k4 */
+ case RSL_CMOD_CSD_NT_12k0:
case RSL_CMOD_CSD_T_9k6:
if (cm->chan_rt != RSL_CMOD_CRT_TCH_Bm)
return false; /* invalid */
/* fall-through */
+ case RSL_CMOD_CSD_NT_6k0:
case RSL_CMOD_CSD_T_4k8:
case RSL_CMOD_CSD_T_2k4:
case RSL_CMOD_CSD_T_1k2: