aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
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
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')
-rw-r--r--openbsc/src/bsc_hack.c6
-rw-r--r--openbsc/src/chan_alloc.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index b9d928dd3..56684cc31 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -403,7 +403,7 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
trx = ts->trx;
if (new_state->availability == 5) {
if (ts->nr == 0 && trx == trx->bts->c0)
- abis_nm_set_channel_attr(ts, NM_CHANC_BCCH_CBCH);
+ abis_nm_set_channel_attr(ts, NM_CHANC_BCCHComb);
else
abis_nm_set_channel_attr(ts, NM_CHANC_TCHFull);
abis_nm_opstart(trx->bts, NM_OC_CHANNEL,
@@ -534,7 +534,7 @@ static void bootstrap_om_bs11(struct gsm_bts *bts)
/* Use TEI 1 for signalling */
abis_nm_establish_tei(bts, 0, 0, base_ts+1, 0xff, 0x01);
- abis_nm_set_channel_attr(&trx->ts[0], NM_CHANC_SDCCH_CBCH);
+ abis_nm_set_channel_attr(&trx->ts[0], NM_CHANC_BCCHComb);
/* SET CHANNEL ATTRIBUTE TS1 */
abis_nm_set_channel_attr(&trx->ts[1], NM_CHANC_TCHFull);
@@ -594,7 +594,7 @@ static void bootstrap_om_bs11(struct gsm_bts *bts)
abis_nm_establish_tei(bts, 1, 0, base_ts+1, 0xff, 0x02);
/* SET CHANNEL ATTRIBUTE TS0 */
- abis_nm_set_channel_attr(&trx->ts[0], NM_CHANC_TCHFull);
+ abis_nm_set_channel_attr(&trx->ts[0], NM_CHANC_SDCCH);
/* Connect traffic of bts0/trx0/ts0 to e1_0/ts4/a */
abis_nm_conn_terr_traf(&trx->ts[0], 0, base_ts+4, 0);
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;