[PATCH] osmo-bts[master]: Use existing function to obtain TSC

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/.

Max gerrit-no-reply at lists.osmocom.org
Thu Jan 4 17:18:25 UTC 2018


Review at  https://gerrit.osmocom.org/5649

Use existing function to obtain TSC

Change-Id: I209f26b527a41b3b6f8e405f2a21b3d4bc4746fb
---
M src/common/pcu_sock.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/49/5649/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index e5bcf57..fa13f24 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -221,8 +221,8 @@
 			if (ts->mo.nm_state.operational == NM_OPSTATE_ENABLED
 			    && ts_should_be_pdch(ts)) {
 				info_ind->trx[i].pdch_mask |= (1 << j);
-				info_ind->trx[i].tsc[j] =
-					(ts->tsc >= 0) ? ts->tsc : bts->bsic & 7;
+				info_ind->trx[i].tsc[j] = gsm_ts_tsc(ts);
+
 				LOGP(DPCU, LOGL_INFO, "trx=%d ts=%d: "
 					"available (tsc=%d arfcn=%d)\n",
 					trx->nr, ts->nr,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I209f26b527a41b3b6f8e405f2a21b3d4bc4746fb
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list