From 972558526670a5896155285ed2e2b8b63cb244f6 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 29 Nov 2016 00:21:18 +0100 Subject: libbsc/pcu_sock.c: pcu_tx_info_ind allow to use TRX not starting from 0 It would prevent using only e.g. TRX 1 when TRX 0 is disabled. Change-Id: I68dc5e837bd2a3602f7875063c85da4082196274 --- openbsc/src/libbsc/pcu_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/libbsc/pcu_sock.c b/openbsc/src/libbsc/pcu_sock.c index 15f422030..6299f4fe7 100644 --- a/openbsc/src/libbsc/pcu_sock.c +++ b/openbsc/src/libbsc/pcu_sock.c @@ -222,7 +222,7 @@ static int pcu_tx_info_ind(struct gsm_bts *bts) for (i = 0; i < ARRAY_SIZE(info_ind->trx); i++) { trx = gsm_bts_trx_num(bts, i); if (!trx) - break; + continue; info_ind->trx[i].hlayer1 = 0x2342; info_ind->trx[i].pdch_mask = 0; info_ind->trx[i].arfcn = trx->arfcn; -- cgit v1.2.3