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
This commit is contained in:
Vadim Yanitskiy 2018-10-07 04:17:35 +07:00
parent 2d21c9ff22
commit 36413548e0
1 changed files with 2 additions and 2 deletions

View File

@ -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]));
}
}
}