summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-31 12:36:07 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-31 12:49:41 +0100
commit7af5f8130f7282e98d0dcf11c4a058a66c2617a6 (patch)
tree63f847ce6222401e94a02c19fb0a1b4f45b36d34
parent8657326093b6e1eed8cc24fe62039d70aa27d47d (diff)
rsl: Remove unused code for channel activation
The code has been unused for a long time. Let's remove it.
-rw-r--r--openbsc/src/libbsc/abis_rsl.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index c4783d6c6..3fa30d112 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -443,41 +443,6 @@ static int channel_mode_from_lchan(struct rsl_ie_chan_mode *cm,
}
/* Chapter 8.4.1 */
-#if 0
-int rsl_chan_activate(struct gsm_bts_trx *trx, uint8_t chan_nr,
- uint8_t act_type,
- struct rsl_ie_chan_mode *chan_mode,
- struct rsl_ie_chan_ident *chan_ident,
- uint8_t bs_power, uint8_t ms_power,
- uint8_t ta)
-{
- struct abis_rsl_dchan_hdr *dh;
- struct msgb *msg = rsl_msgb_alloc();
-
- dh = (struct abis_rsl_dchan_hdr *) msgb_put(msg, sizeof(*dh));
- init_dchan_hdr(dh, RSL_MT_CHAN_ACTIV);
- dh->chan_nr = chan_nr;
-
- msgb_tv_put(msg, RSL_IE_ACT_TYPE, act_type);
- /* For compatibility with Phase 1 */
- msgb_tlv_put(msg, RSL_IE_CHAN_MODE, sizeof(*chan_mode),
- (uint8_t *) chan_mode);
- msgb_tlv_put(msg, RSL_IE_CHAN_IDENT, 4,
- (uint8_t *) chan_ident);
-#if 0
- msgb_tlv_put(msg, RSL_IE_ENCR_INFO, 1,
- (uint8_t *) &encr_info);
-#endif
- msgb_tv_put(msg, RSL_IE_BS_POWER, bs_power);
- msgb_tv_put(msg, RSL_IE_MS_POWER, ms_power);
- msgb_tv_put(msg, RSL_IE_TIMING_ADVANCE, ta);
-
- msg->dst = trx->rsl_link;
-
- return abis_rsl_sendmsg(msg);
-}
-#endif
-
int rsl_chan_activate_lchan(struct gsm_lchan *lchan, uint8_t act_type,
uint8_t ho_ref)
{