From 36413548e0d68ddef957930de57f77b4b512d883 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 7 Oct 2018 04:17:35 +0700 Subject: 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 --- src/common/pcu_sock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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])); } } } -- cgit v1.2.3