aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/chan_alloc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-08-09 22:01:26 +0200
committerHarald Welte <laforge@netfilter.org>2009-08-09 22:01:26 +0200
commit89e9d5927ea138376c73d29b76533a5a14c865c5 (patch)
treecd7f9cb34c95dfe26447be7b8052a8b71b5f77f9 /openbsc/src/chan_alloc.c
parent39c7debc9c4495deba2261ea6036505ed86ac5e5 (diff)
chane TRX0/TS0 channel combination to not include a CBCH
We don't support CBCH anyway, and using CBCH will reduce the number of uesable SDCCH/4 channels to 3 on TS0
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r--openbsc/src/chan_alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 860355a02..5d1e137b9 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -80,13 +80,11 @@ struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts,
case GSM_PCHAN_CCCH_SDCCH4:
from = 0; to = 0;
break;
- case GSM_PCHAN_SDCCH8_SACCH8C:
- from = 1; to = 1;
- break;
case GSM_PCHAN_TCH_F:
case GSM_PCHAN_TCH_H:
- from = 2; to = 7;
+ from = 1; to = 7;
break;
+ case GSM_PCHAN_SDCCH8_SACCH8C:
default:
return NULL;
}
@@ -94,9 +92,11 @@ struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts,
/* Every secondary TRX is configured for TCH/F
* and TCH/H only */
switch (pchan) {
+ case GSM_PCHAN_SDCCH8_SACCH8C:
+ from = 1; to = 1;
case GSM_PCHAN_TCH_F:
case GSM_PCHAN_TCH_H:
- from = 0; to = 7;
+ from = 1; to = 7;
break;
default:
return NULL;