[MERGED] openbsc[master]: pcu_sock: pcu_tx_info_ind allow to use TRX not starting from 0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu May 25 14:43:17 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: pcu_sock: pcu_tx_info_ind allow to use TRX not starting from 0
......................................................................


pcu_sock: 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
---
M openbsc/src/libbsc/pcu_sock.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/openbsc/src/libbsc/pcu_sock.c b/openbsc/src/libbsc/pcu_sock.c
index 0e904db..7712878 100644
--- a/openbsc/src/libbsc/pcu_sock.c
+++ b/openbsc/src/libbsc/pcu_sock.c
@@ -222,7 +222,7 @@
 	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;

-- 
To view, visit https://gerrit.osmocom.org/2062
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I68dc5e837bd2a3602f7875063c85da4082196274
Gerrit-PatchSet: 2
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list