aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-10-07 04:17:35 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-10-07 04:19:12 +0700
commit36413548e0d68ddef957930de57f77b4b512d883 (patch)
tree4bc0a7d3fd8f39dccb5e7b3f250a22f3cc94c881
parent2d21c9ff22ceb3b9f0e2f575877fb764857599f2 (diff)
common/pcu_sock.c: cosmetic: explicitly address lchan
In the most cases a PDCH time-slot has only one logical channel allocated. In case of both osmo-bts-trx and osmo-bts-virtual, there are two kinds of logical channels: PDTCH and PTCCH, but since they share the same chan_nr value, deactivating one of them would trigger deactivation of another one. Let's explicitly address the first logical channel in array. Change-Id: I8edcb46e887c4db63a425eba89cec4374165763e Closes: OS#3023
-rw-r--r--src/common/pcu_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 7f32f32f..60e0f7a7 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -738,9 +738,9 @@ static void pcu_sock_close(struct pcu_sock_state *state)
ts = &trx->ts[j];
if (ts->mo.nm_state.operational == NM_OPSTATE_ENABLED
&& ts->pchan == GSM_PCHAN_PDCH) {
- ts->lchan->rel_act_kind = LCHAN_REL_ACT_PCU;
+ ts->lchan[0].rel_act_kind = LCHAN_REL_ACT_PCU;
l1sap_chan_rel(trx,
- gsm_lchan2chan_nr(ts->lchan));
+ gsm_lchan2chan_nr(&ts->lchan[0]));
}
}
}