summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-27 11:53:23 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-28 00:28:01 +0000
commit3ea9fece6dab31a8dc8f1bf9badad9bb80149fbd (patch)
treeafddabfa8aae664b79d0484e89ce50dfc54f2bb4
parent255dbfe65579d73fa35db376cf68726acc86fb02 (diff)
cosmetic: bs11: also use ts_is_tch()
Use the recently added ts_is_tch() function instead of an explicit switch to determine TCH pchan types. This is a cosmetic change since the bs11 does not support dynamic channels (which was the main motivator behind ts_is_tch()). Change-Id: Idf8ce51c76a83210fe3d70e18c51bbaffebb8ad5
-rw-r--r--openbsc/src/libbsc/bts_siemens_bs11.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/openbsc/src/libbsc/bts_siemens_bs11.c b/openbsc/src/libbsc/bts_siemens_bs11.c
index 160563b0f..c083b1e06 100644
--- a/openbsc/src/libbsc/bts_siemens_bs11.c
+++ b/openbsc/src/libbsc/bts_siemens_bs11.c
@@ -400,15 +400,9 @@ static void nm_reconfig_ts(struct gsm_bts_trx_ts *ts)
if (is_ipaccess_bts(ts->trx->bts))
return;
- switch (ts->pchan) {
- case GSM_PCHAN_TCH_F:
- case GSM_PCHAN_TCH_H:
+ if (ts_is_tch(ts))
abis_nm_conn_terr_traf(ts, e1l->e1_nr, e1l->e1_ts,
e1l->e1_ts_ss);
- break;
- default:
- break;
- }
}
static void nm_reconfig_trx(struct gsm_bts_trx *trx)