From c9582ac2d7366233ab64f2868f17071c2ddadf32 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 17 Jul 2016 00:32:07 +0200 Subject: prepare dyn TS: split/replace conf_lchans_for_pchan() Move the actual switch from static conf_lchans_for_pchan() into new 'public' function conf_lchans_as_pchan(), adding an explicit pchan argument. This allows passing a non-trivial pchan, for dynamic TS. conf_lchans_as_pchan() now takes a pchan argument, so distinguish the naming and drop the 'for_pchan' from conf_lchans_for_pchan(), which takes only a ts argument. Change-Id: I8e458501fff5503c243512aeb3469c12b1f2bbc4 --- include/osmo-bts/gsm_data.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h index 7a486670..c75f8284 100644 --- a/include/osmo-bts/gsm_data.h +++ b/include/osmo-bts/gsm_data.h @@ -127,6 +127,8 @@ enum lchan_ciph_state { #include "openbsc/gsm_data_shared.h" void lchan_set_state(struct gsm_lchan *lchan, enum gsm_lchan_state state); +int conf_lchans_as_pchan(struct gsm_bts_trx_ts *ts, + enum gsm_phys_chan_config pchan); /* cipher code */ #define CIPHER_A5(x) (1 << (x-1)) -- cgit v1.2.3