From 0f890b02f6e42fac6f74f786a4c194c76d8433ab Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 24 Oct 2009 09:09:05 +0200 Subject: ip.access: Use Channel Combination from config file bsc_init.c still contained a hard-coded channel configuration, i.e. CCCH_combined on TS0 of C0, and TCH/F on all other channels. Now it correctly uses the value as specified in the config file. --- openbsc/src/bsc_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openbsc/src/bsc_init.c') diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index d89ab941c..1394dd89c 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -378,10 +378,10 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj, trx = ts->trx; if (new_state->operational == 1 && new_state->availability == NM_AVSTATE_DEPENDENCY) { - if (ts->nr == 0 && trx == trx->bts->c0) - abis_nm_set_channel_attr(ts, NM_CHANC_BCCHComb); - else - abis_nm_set_channel_attr(ts, NM_CHANC_TCHFull); + patch_nm_tables(bts); + enum abis_nm_chan_comb ccomb = + abis_nm_chcomb4pchan(ts->pchan); + abis_nm_set_channel_attr(ts, ccomb); abis_nm_chg_adm_state(trx->bts, obj_class, trx->bts->bts_nr, trx->nr, ts->nr, NM_STATE_UNLOCKED); -- cgit v1.2.3