diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-09-26 22:26:05 +0200 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2020-10-03 18:24:17 +0000 |
commit | 9bdc6e4d7ad7b585785c20cac29005370cb7b158 (patch) | |
tree | 5d0a443986cb769106babc55c760cb0824ca1cef | |
parent | d712451d5d12942fc577c52b2ac45f4a3c9d6dde (diff) |
pcu_sock: use tn as variable name to improve readability
Same as used in osmo-bts
Change-Id: I5c8cf0e2d29fa4999983293401294ee0a94bfa30
-rw-r--r-- | src/osmo-bsc/pcu_sock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c index ae4ac8a20..c2df7c4c3 100644 --- a/src/osmo-bsc/pcu_sock.c +++ b/src/osmo-bsc/pcu_sock.c @@ -105,7 +105,7 @@ static int pcu_tx_info_ind(struct gsm_bts *bts) struct gsm_bts_gprs_nsvc *nsvc; struct gsm_bts_trx *trx; struct gsm_bts_trx_ts *ts; - int i, j; + int i, tn; OSMO_ASSERT(bts); OSMO_ASSERT(bts->network); @@ -203,17 +203,17 @@ static int pcu_tx_info_ind(struct gsm_bts *bts) info_ind->trx[i].hlayer1 = 0x2342; info_ind->trx[i].pdch_mask = 0; info_ind->trx[i].arfcn = trx->arfcn; - for (j = 0; j < ARRAY_SIZE(trx->ts); j++) { - ts = &trx->ts[j]; + for (tn = 0; tn < ARRAY_SIZE(trx->ts); tn++) { + ts = &trx->ts[tn]; if (ts->mo.nm_state.operational == NM_OPSTATE_ENABLED && ts->pchan_is == GSM_PCHAN_PDCH) { - info_ind->trx[i].pdch_mask |= (1 << j); - info_ind->trx[i].tsc[j] = + info_ind->trx[i].pdch_mask |= (1 << tn); + info_ind->trx[i].tsc[tn] = (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, - info_ind->trx[i].tsc[j], + info_ind->trx[i].tsc[tn], info_ind->trx[i].arfcn); } } |