aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/pcu_sock.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-11-20 10:54:09 +0100
committerHarald Welte <laforge@gnumonks.org>2015-11-20 10:54:09 +0100
commit48e99fd05a906bcf9536996733123fdb512b635e (patch)
tree7a54a98f0cbcf39f9f5e4be731514a50e742a8e5 /src/common/pcu_sock.c
parent3c161bb7df7bf95e5a69db97fe3baa6380c3c9ed (diff)
cope with 'struct gsm_bts' without a tsc member
This was introduced in openbsc.git a2bbc5ec0e6481bb5b65da7bdbde03a424437af4
Diffstat (limited to 'src/common/pcu_sock.c')
-rw-r--r--src/common/pcu_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 577cfcfa..f7d3651d 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -210,7 +210,7 @@ int pcu_tx_info_ind(void)
&& ts->pchan == GSM_PCHAN_PDCH) {
info_ind->trx[i].pdch_mask |= (1 << j);
info_ind->trx[i].tsc[j] =
- (ts->tsc >= 0) ? ts->tsc : bts->tsc;
+ (ts->tsc >= 0) ? ts->tsc : bts->bsic & 7;
LOGP(DPCU, LOGL_INFO, "trx=%d ts=%d: "
"available (tsc=%d arfcn=%d)\n",
trx->nr, ts->nr,