BS-11: Fix "CONNECT TERRESTRIAL TRAFFIC"

On a TS 12.21 spec compliant BTS, each Um traffic channel must be mapped
to an E1 sub-slot on the terrestrial back-haul.  This happens via
the CONNECT TERRESTRIAL TRAFFIC message.

We always had code to sen that message, but it got deactivated when
ts->pchan_is / ts->pchan_from_config was introduced.  Of course,
while we are bringing up OML, there is no 'pchan_is' set yet. We only
have 'pchan_from_config' and must use it.

Change-Id: I8988a027b0e897bd9dda460590f974d6be34a4fa
This commit is contained in:
Harald Welte 2020-08-01 17:00:34 +02:00 committed by Harald Welte
parent 1e5e7004dc
commit 2428bab7c0
1 changed files with 10 additions and 3 deletions

View File

@ -404,9 +404,16 @@ static void nm_reconfig_ts(struct gsm_bts_trx_ts *ts)
if (is_ipaccess_bts(ts->trx->bts))
return;
if (ts_is_tch(ts))
abis_nm_conn_terr_traf(ts, e1l->e1_nr, e1l->e1_ts,
e1l->e1_ts_ss);
switch (ts->pchan_from_config) {
case GSM_PCHAN_TCH_F:
abis_nm_conn_terr_traf(ts, e1l->e1_nr, e1l->e1_ts, e1l->e1_ts_ss);
break;
case GSM_PCHAN_TCH_H:
LOG_TS(ts, LOGL_ERROR, "No support for half-rate over E1 yet!\n");
break;
default:
break;
}
}
static void nm_reconfig_trx(struct gsm_bts_trx *trx)